DTD Attribute Default Values
In the previous lesson, we defined an attribute using a default value of
No. In this lesson, we look at the various options for defining default values for your attributes.
TYPE field can be set to one of the following values:
|A simple text value, enclosed in quotes.
|Specifies that there is no default value for this attribute, and that the attribute is optional.
|There is no default value for this attribute, but a a value must be assigned.
|The #FIXED part specifies that the value must be the value provided. The value part represents the actual value.
Examples of these default values follow.
You can provide an actual value to be the default value by placing it in quotes.
#REQUIRED keyword specifies that you won't be providing a default value, but that you require that anyone using this DTD does provide one.
#IMPLIED keyword specifies that you won't be providing a default value, and that the attribute is optional for users of this DTD.
#FIXED keyword specifies that you will provide value, and that's the only value that can be used by users of this DTD.