HTML & XHTML: The Complete Reference (Osborne Complete Reference Series)

 <  Day Day Up  >  

The previous SGML example declares the lang attribute as having values of type NAME , an alphabetic string. NAME is one of several SGML/XML keywords occurring in HTML and XHTML's declarations of an attribute's type:

Notice in early DTD fragment for <bdo> that the dir attribute does not declare its type using a keyword. Instead, the type is specified using an enumerated list containing two possible values, ltr and rtl . In that example for either SGML or XML, the attribute's default behavior is specified with a keyword. A default value may be specified using a quoted string.


 <  Day Day Up  >  

Категории