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 | ||
|
|
Heading |
|
Block division |
|
|
Paragraph |
|
Span of inline content |
|
|
Preformatted text |
Lists | |
|
|
Contact information |
|
Unordered list |
|
|
Lengthy quotation |
|
Ordered list |
|
Inline elements |
|
List item | |
|
|
Abbreviation |
|
Definition list |
|
|
Acronym |
|
Term |
|
|
Citation or reference |
|
Definition |
|
|
Code fragment |
|
Menu list |
|
|
Defining term |
|
Directory |
|
|
Emphasized text |
Presentational elements | |
|
|
Short inline quotation |
|
Bold |
|
|
Strongly emphasized |
|
Big text |
|
|
Sample output |
|
Italic |
|
|
Text entered by a user |
|
Strike-through |
|
|
Variable or program argument |
|
Strike-through |
|
|
Subscript |
|
Teletype |
|
|
Superscript |
|
Underlined |
|
Line breaks | |||
|
|
Inserts line break |
|
Font face, color, and size |
|
Edit notation |
|
Sets default font face | |
|
|
Inserted text |
|
No break |
|
|
Deleted text |
|
Word break |
|
|
Horizontal rule | ||
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access