. The rules are applied in the form of markup (tags) that can be embedded in an electronic document to identify and establish relationships among structural parts. Because consistent markup of similarly structured documents is key to successful electronic processing of them, SGML encourages consistency by introducing the concept of a document type definition (or DTD). A DTD prescribes the ordered set of SGML markup tags available for encoding the parts of documents in a similar class.