This chapter provides tutorial notes and example codes on DTD (Document Type Definition). Topics include introduction to DTD (Document Type Definition); using DOCTYPE statement to define an XML document type; specifying XML elements, attributes and entit