Attributes
The rules for attribute declarations follow a similar structure to elements.<!ATTLIST person gender (male|female)#IMPLIED >
- ATTLIST is the type
- person is the element
- gender is the attribute declaration
- (male|female)#IMPLIED is the attribute definition
The keywords following an attribute definition can be
- #IMPLIED attribute is optional
- “unknown” string in quotes is the default attribute
- #REQUIRED attribute is required
- #FIXED if attribute is present, it is assigned a fixed value