Examveda

All attribute declarations begin with the keyword ____________ followed by the element name, attribute name, attribute type, and default data information.

A. XML

B. SGML

C. ATTLIST

D. None of the mentioned

Answer: Option C

Solution (By Examveda Team)

Option C is the correct answer.

In an HTML or SGML Document Type Definition (DTD), attribute declarations begin with the keyword ATTLIST. An ATTLIST declaration specifies the attributes that are allowed for a particular element, along with each attribute's type and default value.

The general syntax of an attribute list declaration is:

<!ATTLIST element-name attribute-name attribute-type default-value>

Why Option A is incorrect:

XML (Extensible Markup Language) is a markup language, not the keyword used to declare attributes in a DTD. Although XML supports DTDs, attribute declarations within a DTD still use the ATTLIST keyword.

Why Option B is incorrect:

SGML (Standard Generalized Markup Language) is the markup language standard from which HTML was originally derived. It defines the concept of DTDs, but SGML itself is not the keyword used to declare attributes. The actual declaration keyword is ATTLIST.

Why Option D is incorrect:

Option D is incorrect because ATTLIST is the standard keyword used for attribute declarations in SGML and DTD-based document definitions.

Therefore, all attribute declarations begin with the keyword ATTLIST, making Option C the correct answer.

This Question Belongs to HTML >> HTML Fonts, Tags And Elements

Join The Discussion

Comments (2)

  1. Kartik Thakur
    Kartik Thakur:
    2 months ago

    Ul tag

  2. Anamika Kumari
    Anamika Kumari:
    5 years ago

    Which tag is use for creating bulleted list with numbers?
    A.
    B.
    C.


    Give answer with explain
    Plzz

Related Questions on HTML Fonts, Tags and Elements