What's Next

In this chapter, you've learned about the basic structure of an XHTML document. Each document must follow one of three document types, the choice of which is based on the type of content the document will contain.

Every XHTML document must contain at least four out of five elements before any visible content is included. These elements include the doctype declaration, root, head, and title elements. Meta tags are optional, though are contained within the head element when present.

Block-level elements are those that can, at times, contain other block-level elements, and can always contain inline elements and data. Block-level elements tend to make up the larger structures of the document. Inline elements may only contain other inline ...

Get XHTML by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.