Elements of DTD
Added 26 Jul 2008
An element is the basic building block of an XML document. XHTML
tags are all elements: , ,
, etc.
There are three primary types of elements:
- simple elements
These are elements that contain text or "parsed character data" (represented as #PCDATA in your DTD). In XHTML, the tag is an example of a simple element. - compound elements
These elements contain other elements, and sometimes PCDATA and other elements. In XHTML, the tag is an example of a compound element. - standalone elements
These elements are often called "singleton" tags. They do not contain any PCDATA or other elements. In XHTML,
is an example of a standalone element.