
What is a DTD?
A DTD is a Document Type Definition.
A DTD defines the structure and the legal elements and attributes of an XML document.
Curriculum
- 7 Sections
- 32 Lessons
- 10 Weeks
Expand all sectionsCollapse all sections
- DTD IntroductionA DTD is a Document Type Definition. A DTD defines the structure and the legal elements and attributes of an XML document.4
- DTD - XML Building BlocksThe main building blocks of both XML and HTML documents are elements.6
- DTD - ElementsIn a DTD, elements are declared with an ELEMENT declaration.10
- 1.1Declaring Elements
- 1.2Empty Elements
- 1.3Elements with Parsed Character Data
- 1.4Elements with any Contents
- 1.5Elements with Children (sequences)
- 1.6Declaring Only One Occurrence of an Element
- 1.7Declaring Zero or More Occurrences of an Element
- 1.8Declaring Zero or One Occurrences of an Element
- 1.9Declaring either/or Content
- 1.10Declaring Mixed Content
- DTD - AttributesIn a DTD, attributes are declared with an ATTLIST declaration.3
- XML Elements vs. AttributesIn XML, there are no rules about when to use attributes, and when to use child elements.4
- DTD - EntitiesEntities are used to define shortcuts to special characters. Entities can be declared internal or external.2
- DTD Examples3
Instructors
No student enrolled.