🌤

Top 5 unknown but super useful HTML tags!

HTML

Published on

February 22, 2022

Top 5 unknown but super useful HTML tags!

Introduction

We all know about HTML right? We will also agree that HTML is really simple and easy to understand. But we can not deny that we have to write HTML to make a website, may it be a simple HTML, CSS, JavaScript website or may it be a production level complex Next.js or Remix web application we need to write HTML some way or other.

So, here are some that you don't even know existed but super useful❗

List of unknown HTML tags.

1. < abbr >

<abbr> is the short form of abbreviation. It allows you to show the full form of the acronym on hover🖱️.

Here is an example.

&lt;p&gt;
 &lt;abbr title=&quot;Hyper Text Markup Language&quot;&gt;HTML&lt;/abbr&gt; is the best thing since 
 sliced web.
&lt;/p&gt;

Preview.

abbr tag Image!

2. < kbd >

When you see some keyboard input is specified into a website. Well, That's the Job of kbd Tag!

&lt;h1&gt;Keyboard Input Shortcuts.&lt;/h1&gt;
  &lt;P&gt;
      To Copy Press &lt;kbd&gt;CTRL+C&lt;/kbd&gt;
   &lt;/P&gt;
   &lt;p&gt;
       To Paste Press &lt;kbd&gt;CTRL+V&lt;/kbd&gt;
   &lt;/p&gt;
   &lt;p&gt;
       To Print Press &lt;kbd&gt;CTRL+P&lt;/kbd&gt;
   &lt;/p&gt;

Preview.

Screenshot 2022-02-28 105836.jpg

3. < details>

details tag is used to expand some information about a topic by toggling it.👌

&lt;details&gt;
  &lt;summary&gt;Epcot Center&lt;/summary&gt;
  &lt;p&gt;Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, 
         international pavilions, award-winning fireworks and seasonal special events. 
  &lt;/p&gt;
&lt;/details&gt;

Preview.

Screenshot 2022-02-28 110420.jpg

4. < progress >

Do you know that there is an element to show your progress graphically?🤷‍♂️ progress tag does exactly that and you can also style it with CSS.

&lt;label for=&quot;file&quot;&gt;Downloading progress:&lt;/label&gt;
&lt;progress id=&quot;file&quot; value=&quot;32&quot; max=&quot;100&quot;&gt; 32% &lt;/progress&gt;

Preview.

Screenshot 2022-02-28 110603.jpg

5. < datalist>

This tag is extremely helpful long back as a beginner I found it difficult to implement a dropdown in a form.😅 This is basically an advanced dropdown to select something in a form.

&lt;label for=&quot;browser&quot;&gt;Choose your browser from the list:&lt;/label&gt;
&lt;input list=&quot;browsers&quot; name=&quot;browser&quot; id=&quot;browser&quot;&gt;

&lt;datalist id=&quot;browsers&quot;&gt;
   &lt;option value=&quot;Edge&quot;&gt;
   &lt;option value=&quot;Firefox&quot;&gt;
   &lt;option value=&quot;Chrome&quot;&gt;
   &lt;option value=&quot;Opera&quot;&gt;
   &lt;option value=&quot;Safari&quot;&gt;
&lt;/datalist&gt;

Preview.

Screenshot 2022-02-28 110819.jpg

So, this is it for this one. I will catch you in an next interesting blog.