Semantic HTML is a great way to convey meaning of your page. Mark up abbreviated content with the <abbr>
tag. And when you pass a title, it will create a tooltip when hovered over. Nice! π
<abbr title="Today I learned">TIL</abbr> something awesome!
β Default Styling
β Styling abbr Tag
β Battle between abbr VS acronym βοΈ
β Why Semantic HTML is important
β Display HTML abbr on Mobile
ββ Solution 1: Display Non-abbreviated Term
ββ Solution 2: Display Non-abbreviated Term with Tap
ββ Solution 3: JavaScript Tooltip
β Browser Support
β Resources
The default styling of <abbr>
varies a bit from different browsers. In Chrome and Firefox, it will have an underline and when hovered it will a tooltip of the title
value you passed.
#html