Janis Lesinskis' Blog

Assorted ramblings

  • All entries
  • About me
  • Projects
  • Economics
  • Misc
  • Software-engineering
  • Sports

The HTML abbreviation tag


So today I learned that there's actually a HTML tag for representing abbreviations: abbr tag.

Given the absolutely absurd prevalence of acronyms and abbreviations used in writing in the technical world I'm slightly surprised that this tag is not used more often.

So let's say I wanted to use this to show what TIL actually stood for, it would look like this in HTML:

<abbr title="Today I learned">TIL</abbr>

Here's what it this looks like when rendered inline:

TIL

As a note to writers, please define what your acronyms and abbreviations are, not all readers have the same context as you and lack of clarity with regards to what something stands for is highly annoying. If you use the approach here you don't even need to compromise the density of your prose to your regular audience to make it clear what you mean for everyone else.

Published: Thu 16 April 2020
By Janis Lesinskis
In Software-engineering
Tags: TIL abbreviations HTML acronyms

links

  • JaggedVerge

social

  • My GitHub page
  • LinkedIn

Proudly powered by Pelican, which takes great advantage of Python.