DTD Tutorial

The role of DTD (Document Type Definition) is to define the valid building blocks of XML documents.

It uses a series of valid elements to define the document structure.

Start Learning DTD !

Table of Contents

DTD Introduction
An introduction to XML DTD and the reasons for using it.
DTD - XML Building Blocks
XML building blocks that can be defined in DTD.
DTD Elements
How to use DTD to define the valid elements of an XML document.
DTD Attributes
How to use DTD to define the valid attributes of XML elements.
DTD Entities
How to use DTD to define XML entities.
DTD Validation
How to check DTD errors when loading an XML document.
DTD Examples
Some real DTD examples.
DTD Summary
This article includes a summary of the content learned in this tutorial and the next steps we recommend you should learn.