DEV Community 👩‍💻👨‍💻

Cover image for 7 Cool HTML Elements Nobody Uses
Tapajyoti Bose
Tapajyoti Bose

Posted on • Updated on

7 Cool HTML Elements Nobody Uses

Searching for cool HTML elements, especially if you don't know what you're looking for, is often like being thrown into a pile of garbage

thrown-into-garbage

Don't worry, I did the dirty work for you!

After scavenging through the seemingly endless pile of HTML elements, I dug up a few of the rarely used gems!

1. meter & progress

The progress element is the semantically correct way of displaying progress bars.

The meter element is progress on steroids. Apart from displaying a scalar measurement within a known range, it allows you to specify the value's low, high & optimum range.

<meter
  min="0"
  max="100"
  low="25"
  high="75"
  optimum="80"
  value="50"
></meter>
Enter fullscreen mode Exit fullscreen mode

meter

2. sup & sub

You can add superscripts (like ) with sup and subscripts (like x₀) using sub to your document.

superscript

subscript

3. datalist

datalist allows you to add an autocomplete suggestions to your input elements.

datalist

NOTE

  1. The suggestions are NOT LIMITED to text inputs, but can be used with color, date, time, and even range inputs.
  2. The default styling of the suggestions is unpleasant to look at, to say the least. But, you can always style it using CSS.

4. map & area

map and area allow you to create image maps, which is a fancy term for images with clickable areas.

<img
  src="workplace.jpg"
  alt="Workplace"
  usemap="#workmap"
  width="400"
  height="379"
/>

<map name="workmap">
  <area
    shape="rect"
    coords="34,44,270,350"
    alt="Computer"
    href="computer.html"
  />
  <area
    shape="rect"
    coords="290,172,333,250"
    alt="Phone"
    href="phone.html"
  />
  <area
    shape="circle"
    coords="337,300,44"
    alt="Cup of coffee"
    href="coffee.html"
  />
</map>
Enter fullscreen mode Exit fullscreen mode

map-and-area

4. details & summary

details and summary are used to create collapsible content without using any JavaScript. It's the semantic method of creating dropdowns.

details

6. object

Pulling your hair out to embed files on your website? Look no further!

object allows you to embed a wide range of files like PDFs, images, videos, audio and even Youtube videos.

object

7. abbr

The abbr element allows you to add abbreviations to your document. When the user hovers over the abbreviation, the full form is displayed. Moreover, screen readers can also be configured to read out the full form when an abbreviation is encountered.

abbriviation

That's all folks! 🎉

Reference

  1. W3Schools
  2. MDN

Thanks for reading

Need a Top Rated Front-End Development Freelancer to chop away your development woes? Contact me on Upwork

Want to see what I am working on? Check out my Personal Website and GitHub

Want to connect? Reach out to me on LinkedIn

I am a Digital Nomad and occasionally travel. Follow me on Instagram to check out what I am up to.

Follow my blogs for bi-weekly new tidbits on Dev

FAQ

These are a few commonly asked questions I get. So, I hope this FAQ section solves your issues.

  1. I am a beginner, how should I learn Front-End Web Dev?
    Look into the following articles:

    1. Front End Development Roadmap
    2. Front End Project Ideas
  2. Would you mentor me?

    Sorry, I am already under a lot of workload and would not have the time to mentor anyone.

Oldest comments (40)

Collapse
 
harvydenth profile image
HarvyDenth

Wow, I should definitely try it

Collapse
 
devangtomar profile image
Devang Tomar

These are really useful! Thanks for sharing 🙌

Collapse
 
toddpress profile image
Todd Pressley

great article! you know what else i don’t see much in the wild? the dialog element!

Collapse
 
junihh profile image
Junior Hernandez

That has a reason. MDN says that Safari adopted it in version 15.4 and Firefox in 98, while Chromium supports it since version 37. So support in all browsers started very recently. Due to the lack of support, it is not as popular. 😁

Collapse
 
amircahyadi profile image
Amir-cahyadi

Useful 👍❤️

Collapse
 
gamerseo profile image
Gamerseo

It is worth paying attention to details to distinguish our website.

Collapse
 
conorsheehan1 profile image
Conor Sheehan

Were you inspired by the trending post on r/programming a few days ago? reddit.com/r/programming/comments/...

Got some déjà vu reading this

Collapse
 
ruppysuppy profile image
Tapajyoti Bose

Not really. It was inspired by this: dev.to/eludadev/those-html-element...

Collapse
 
fontchangerguru profile image
fontchangerguru

I did some research and found this article dev.to/eludadev/those-html-element... it helped me to build fontchangerguru.com/creepy-text-ge... Thanks for recommendation.

Collapse
 
thomasbnt profile image
Thomas Bnt

Abbr is really cool to using!

Collapse
 
tuenguyen2911_67 profile image
Tue

Saving!

Collapse
 
oskargrosser profile image
Oskar Grosser

When talking about "elements nobody uses":
In point 2 you could have used the <dfn> Definition element to show what term you are explaining (the Pythagorean Theorem) instead of using the <strong> element.

Collapse
 
hacknetayush profile image
HackNetAyush

Meter, Map & Area are extremely useful! ❤

Collapse
 
bartosz profile image
Bartosz Wójcik

Why you publish the same thing here and on Medium?

Collapse
 
ruppysuppy profile image
Tapajyoti Bose

To grab more eyeballs

Collapse
 
bartosz profile image
Bartosz Wójcik

This is spam

Collapse
 
devsimc profile image
simc dev CSM®

You can check this out 24 tags also
cmsinstallation.blogspot.com/2021/...

Collapse
 
baasmurdo profile image
BaasMurdo

I knew about most, but at the same time forgot about most 😅
Great post !

Collapse
 
marcoboelling profile image
Marco Boelling

Nice ;)

Collapse
 
msiame1 profile image
msiame1

Very usful. Thanks for sharing!

We want your help! Become a Tag Moderator.
Check out this survey and help us moderate our community by becoming a tag moderator here at DEV.