
Attributes
Attributes also must be declared in the DTD. Element attributes are
declared with the ATTLIST declaration, for example:
<!ATTLIST tel preferred (true | false) “false”>
The various components in this declaration are the markup (<!ATTLIST), the
element name (tel), the attribute name (preferred), the attribute type
((true | false)), a default value (“false”), and the right angle bracket.
For elements that have more than one attribute, you can group the declara-
tions. For example, email has two attributes:
<!ATTLIST email href CDATA #REQUIRED
preferred (true | false) “false”>
Attribute declaration can appear anywhere in the DTD. For readability ...