htmlabbr

How does one implement something like Acronym in HTML5?


Given that acronym is removed in HTML 5, how does one get standards support with similar functionality? Every other removed tag looks like CSS can do it, but that one seems to be removed completely...


Solution

  • <abbr> has been repurposed for both abbreviations as well as acronyms:

    The abbr element represents an abbreviation or acronym, optionally with its expansion.

    If you want to be specific with your semantics, perhaps adding class="acronym" would do the trick. I think that's as far as you can go, although I should add that class has no actual semantic value whatsoever.