Markup: Elements, Attributes, and Values

(X)HTML is an ingenious system of including information about the content right in a text document. This information—called markup, accounting for the m in (X)HTML—can include formatting instructions as well as details about the relationships between parts of the document. However, because the markup itself is comprised chiefly of text, the document is practically universally accessible.

(X)HTML has three principal types of markup: elements, attributes, and values. Later on in the book we’ll also talk about declarations (see page 40) and entities (see page 336).

Elements

Elements are like little labels that identify and structure the different parts of a Web page: “This is a header, that thing over there ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide 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.