Adding Semantic Value with Inline Elements
In addition to links, there are a number of other inline elements that can lend nuances of meaning to content. These elements are summarized in Table 8-1.
Table 8-1. A survey of HTML 4 inline elements
Element | Long name | “Presentation” equivalent | Notes |
|---|---|---|---|
| emphasis |
| |
| strong emphasis |
| |
| source citation |
| Applied to titles of books, periodicals, broadcast program series, and long form audio/visual media, but not to other proper names |
| code passage |
| cf.
|
| user-supplied keyboard input |
| |
| program output sample |
| According to the HTML 4.01
specification, distinguished from |
| abbreviation | [none] | |
| acronym | [none] | Acronyms and abbreviations expand in mutually exclusive ways; acronyms are formatted differently from one country to the next |
| superscript | [none] | Best assigned an infinitesimal |
| subscript | [none] | |
| insertion | [none] | Styled with an underline, by default |
| deletion |
| Best followed by content within |
| inline quote | [none] | Behavior varies by user
agent; prefer |
| variable; irrational number |
| E.g.,
2 |
| definition |
| Marks up terms that are presented
inline to their definition, as a complement
to definition lists (Definition Lists); especially effective
when assigned an |
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