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 |
Get HTML & CSS: The Good Parts 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.