Name

abbr, acronym, cite, code, dfn, em, kbd, samp, strong, var

Synopsis

    <abbr>...</abbr>, <acronym>...</acronym>, etc.

Attributes

Core (id, class, style, title), Internationalization, Events

Phrase elements may contain other inline elements. The meaning and use of each element is listed here. When elements have a standardized presentation in browsers (for example, em elements universally display in an italic font), it is also noted. Authors are reminded, however, to choose elements based on meaning, not a desired rendering effect.

em

Indicates emphasized text. em elements are nearly always rendered in italics.

strong

Denotes strongly emphasized text. Strong elements are nearly always rendered in bold text.

abbr

Indicates an abbreviated form.

acronym

Indicates an acronym.

cite

Denotes a citation: a reference to another document, especially books, magazines, articles, and so on. cites are commonly rendered in italics.

dfn

Indicates the defining instance or first occurrence of the enclosed term. It can be used to call attention to the introduction of special terms and phrases. Defining terms are often rendered in italics.

code

Denotes a program code sample. By default, code is rendered in the browser’s specified fixed-width font (usually Courier).

kbd

Stands for “keyboard” and indicates text entered by the user. It may be useful for technical documents. Keyboard text is typically rendered in a fixed-width font.

samp

Indicates sample output from programs, scripts, etc. It may be useful ...

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.