HTML element

This is an old revision of this page, as edited by Nohat (talk | contribs) at 02:40, 15 March 2004 (NPOV "ugly kind of '''pars-pro-todo'''"). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computing, an HTML element (instance) in terms of SGML is the complete sequence of a start tag (with attributes and their values), any embedded HTML content, and the end tag. A special case is empty elements that don't have contents and end tags. Due to the constraints of the DTDs, various parts, including start and end tag, may be omitted in HTML, but not XHTML.

The entire element is sometimes called a "tag", to the consternation of some purists. This is an example of synecdoche.