July 2002
Intermediate to advanced
560 pages
11h 10m
English
Attributes provide additional information about elements and can be used for a wide variety of tasks. They make it possible to define the relationships between elements, no matter where they appear in the document. You can declare all attributes for an element in one declaration, or you can declare the attributes via several element declarations.
Start tags and empty element tags can contain attributes, which take the form of name–value pairs separated by an equals sign (“=”). “<!ATTLIST>” declares an attribute in the DTD. To declare attributes in the DTD, use the following general format:
<!ATTLIST ELEMENT_NAME ATTRIBUTE_NAME TYPE DEFAULT_VALUE>
ELEMENT_NAME is the name of the element in which the attribute ...
Read now
Unlock full access