17. DTD Attribute Declaration

Attributes are declared in a DTD using the ATTLIST declaration.

Example 17.1 ATTLIST Declaration Syntax
<!ATTLIST
	ELEMENT_NAME ATTRIBUTE_NAME TYPE DEFAULT_VALUE
>
	

ELEMENT_NAME is the name of the element that has attribute(s). ATTRIBUTE_NAME is the name of an attribute that is being declared. TYPE is the attribute's type, and DEFAULT_VALUE represents the default value.