Chapter 10. Text Elements

This chapter gets to the real meat and potatoes of document markup: elements used to structure text content. It’s no surprise that nearly half of all the elements in the (X)HTML Recommendation are introduced in this chapter. The elements and discussions are organized as follows:

Block elements

Generic elements

h#

Heading

div

Block division

p

Paragraph

span

Span of inline content

pre

Preformatted text

Lists

address

Contact information

ul

Unordered list

blockquote

Lengthy quotation

ol

Ordered list

Inline elements

li

List item

abbr

Abbreviation

dl

Definition list

acronym

Acronym

dt

Term

cite

Citation or reference

dd

Definition

code

Code fragment

menu

Menu list

dfn

Defining term

dir

Directory

em

Emphasized text

Presentational elements

q

Short inline quotation

b

Bold

strong

Strongly emphasized

big

Big text

samp

Sample output

i

Italic

kbd

Text entered by a user

s

Strike-through

var

Variable or program argument

strike

Strike-through

sub

Subscript

tt

Teletype

sup

Superscript

u

Underlined

Line breaks

  

br

Inserts line break

font

Font face, color, and size

Edit notation

basefont

Sets default font face

ins

Inserted text

nobr

No break

del

Deleted text

wbr

Word break

  

hr

Horizontal rule

Get Web Design in a Nutshell, 3rd Edition 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.