Answer & Solution
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.
