Versions and Semantics
The latest HTML standard is version 4.01, but most updates and changes to the language standard were made in version 4.0. Therefore, throughout the book, we often refer to the HTML standard as HTML 4, encompassing versions 4.0 and later. We explicitly state the "dot" version number only when it is relevant.
The XHTML standard is currently in its first iteration, 1.0. The World Wide Web Consortium (W3C) has released a Working Draft of a second version (XHTML 2.0), but the standard is yet established. For the most part, XHTML 1.0 is identical to HTML 4.01; we detail their differences in Chapter 16. Throughout the book, we specifically note cases where XHTML handles a feature or element differently than the original language, HTML.
The HTML and XHTML standards make very clear the distinction
between "element types" of a document and the markup "tags" that delimit
those elements. For example, the standard refers to the paragraph
element type, which is not the same as the <p> tag. The paragraph element consists
of the accepted element-type name within the starting tag (<p>), intervening content, and the
ending paragraph tag (</p>).
The <p> tag is the starting tag
for the paragraph element, and its contents, known as attributes,
ultimately affect the paragraph element type's contents.
Although these are important distinctions, we're pragmatists. It is the markup tag that authors apply in their documents and that affects any intervening content. Accordingly, throughout ...