Obscure HTML elements that almost no one uses (but should!)

99,512
85
Published 2022-03-03
A look at some lesser known HTML elements.

πŸ”— Links
βœ… The codepen: codepen.io/kevinpowell/pen/ZEaeENx
βœ… MDN on mark: developer.mozilla.org/en-US/docs/Web/HTML/Element/…
βœ… MDN on time: developer.mozilla.org/en-US/docs/Web/HTML/Element/…
βœ… MDN on output: developer.mozilla.org/en-US/docs/Web/HTML/Element/…
βœ… MDN on abbr: developer.mozilla.org/en-US/docs/Web/HTML/Element/…
βœ… MDN on dfn: developer.mozilla.org/en-US/docs/Web/HTML/Element/…

⌚ Timestamps
00:00 - Introduction
00:34 - mark
02:50 - time
05:08 - output
07:05 - abbr
09:20 - dfn

#css

--

Come hang out with other dev's in my Discord Community
πŸ’¬ discord.gg/nTYCvrK

Keep up to date with everything I'm up to
βœ‰ www.kevinpowell.co/newsletter

Come hang out with me live every Monday on Twitch!
πŸ“Ί www.twitch.tv/kevinpowellcss

---

Help support my channel
πŸ‘¨β€πŸŽ“ Get a course: www.kevinpowell.co/courses
πŸ‘• Buy a shirt: teespring.com/stores/making-t...
πŸ’– Support me on Patreon: www.patreon.com/kevinpowell

---

My editor: VS Code - code.visualstudio.com/

---

I'm on some other places on the internet too!

If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.

Twitter: twitter.com/KevinJPowell
Codepen: codepen.io/kevinpowell/
Github: github.com/kevin-powell

---

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more a

All Comments (21)
  • @MKRCodes
    Something to note: the title attribute works on every HTML element and creates a tooltip with the value.
  • @codeman99-dev
    Important note about The purpose of this element is to allow the author to reference back to the definition later with an anchor tag.
  • This video deserves a second or even third part as there are many more HTML elements people may not know about, e.g.
  • @AbdicateDotNet
    P.S. Even the closed caption has you saying "Hello my friend and friends" instead of "front-end friends". πŸ˜±πŸ˜‚
  • @BenRangel
    I love the readability that unusual tags bring, just by standing out from the crowd of divs. I think many devs are too scared to use them because they feel "if I change one thing does that mean I have to change it all to be consistent" Answer is no - in fact the greatest benefit is when you use these rarely. My site just uses
  • @n_mckean
    The insight here is that HTML is a language (hence the L) and so just like any language, things have meaning. If you use things incorrectly, people might still understand what you are trying to say eventually, but it makes it harder to communicate. To me, learning the meaning of elements of HTML is no less important of learning how to construct a sentence in Spanish or any other language.
  • @0ZeldaFreak
    Things like datetime and abbreviation makes sense with automation. With abbreviation it makes sense when in your editor, it will detect an existing abbreviation from your list and will add it automatically, so you don't need to think about it. With datetime, it makes a ton of sense with timezones. In general with units, that makes a ton of sense. When I would write stuff, I would use Celsius for temperature. It makes sense for me and I understand Celsius, so it makes sense for me to write temperature in Celsius. But there are people where Fahrenheit is more natural to them and when reading, it makes sense that they understand it. When I say 19Β°C is my preferred room temperature, not everyone knows how to fell about that. When they know its 66.2Β°F, they understand it. Sure sometimes the number is more important. Someone else might say 69Β°F is there preferred temperature. Well the number speaks for itself but knowing that its 20.6Β°C is also important, to understand its still a somewhat normal temperature. Nobody wants to deal with such stuff manually. No one wants to check the conversion themselves and when writing, no one wants to do it manually. Timezones are even more important. Sure there are information that only make sense in the current timezone. When I say the party at my house starts at 5pm, Timezones aren't important. When I say my new song drops at 5pm EST, someone in Europe want to know the time for them. They can look up what EST is and see its UTC -5. They know they are at UTC +1 and then can add 6 hours. There are 2 steps involved, knowing what EST means in UTC and then doing the math. When you need to deal with Daylightsavings, it gets a bit more tricky.
  • @CreaZyp154
    A lot of these elements can be reproduced with CSS, but it is important to use them for both SEO, and accessibility (like screen readers)
  • @jtcreates5120
    Finally, someone is bringing these elements into the light. The use of divs and spans is just unnecessary high.
  • @ShiaMajer
    I really like the tutorials you made, simple to understand and no bias in the middle. Subbed!
  • @nicejungle
  • @zachjensz
    I was trying to use a element yesterday and it was so hard to style that I ended up just using a div. It's great when they are simple to style like these ones.
  • Very useful. I always learn something from you, even if I only have 2 or 3 minutes. So, thanks.
  • @PeppertopComics
    I often use the
  • @n_mckean
    is very underused and has accessibility benefits. A screen-reader could pronounce WHO as "Who", when you want it to announce World Health Organisation. Equally you would want to hear "pound", not "lub" (lb,)
  • @HarryPujols
    The abbr tag is useful when you have a text overflow ellipsis in table cells.
  • @BenRangel
    3:50 for article pub date wouldn't all serious article pages have a date meta tag for handling SEO? Isn't the time tag attributes more for screen readers etc?