This section describes syntax formats of the ATTLIST statement, which is used to declare a list of attributes for the specified element. The ATTLIST statement specifies what is the name of the attribute, what is the data type, and what is the default value.
ATTLIST: is a DTD statement that defines one or more attributes of an XML element.
The ATTLIST statement specifies what is the name of an attribute, what is the
data type of the attribute value, whether the attribute is required, and what is the
default attribute value.
3. Fixed: The attribute has a fixed value, and the value is specified in the
declaration statement. If this attribute is included in the XML file, it must
have the specified value. If this attribute is not included in the XML file, the
XML parser will provide it with the specified value.
4. Default: A default value is specified for the attribute.
If this attribute is not included in the XML file, the XML parser
will provide it with the specified default value.
If this attribute is included in the XML file, the specified default value
will be replaced by the specified default value.