Key Points

  • Most tags are descriptive in nature; in other words, they specify that text has a certain function, rather than specifying a certain way it should appear.

  • The exact formatting of descriptive tags is controlled by the browser defaults, by individual user customization, or by styles.

  • Headings are defined by tags <h1> through <h6>, from largest to smallest.

  • To make text bold, use the <b> tag; to make text italicized, use the <i> tag.

  • The tag for superscript is <sup>; the tag for subscript is <sub>.

  • Monospace text is text in which each character occupies the same amount of horizontal space; its opposite is proportional text.

  • By default, most Web text appears in a proportional font. To specify a monospace font, use the <tt>, <kbd>, <code>, or ...

Get HTML and XHTML Step by Step 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.