HTML <abbr> tag
- closing tag
- required
- void element
- no
- lives inside
- inline, inside running text
- typically holds
- an abbreviation or acronym
Where it goes
Around the abbreviation itself, with title holding the full form. Spell it out on first use in the page, then use the short form freely.
Example
<p>Pages are built with <abbr title="HyperText Markup Language">HTML</abbr> and styled with <abbr title="Cascading Style Sheets">CSS</abbr>.</p>Open this example in the editor →
Common mistakes
- Leaving off title. Then the tag gives the reader nothing.
- Wrapping every occurrence on the page. The first one is enough. A dotted underline under every "HTML" is noise.
- Relying on the tooltip for something that matters. Touch screens have no hover. If the full form matters, write it in the text too.