This chapter provides tutorial notes and example codes on DTD statement syntax. Topics include using DOCTYPE to declare document type, using ELEMENT to declare elements, using ATTLIST to declare attribute list, using ENTITY to declare entities.
The DOCTYPE statement specifies the root element name, internal DTD sub statement body and/or external DTD file.
The ELEMENT statement specifies an element name, and structure of its content.
The ATTRIBUTE statement specifies a list of attributes for a given element name. The attribute list contains attribute names, value types and default values.
The ENTITY statement specifies an entity and its replacement value.
Comments can be entered in the format of "<-- comments -->".