10 lesser known HTML tags

As web developers, you’ve probably come to rely on HTML tags like and But there’s so much more to HTML than the standard tags you learned when you just started out.

Let’s take a look at 10 lesser known HTML tags that could soon become your go-to tools for creating dynamic, easy-to-use web pages.

01. <details> and <summary>


and elements allow you to create a dropdown that shows the hidden content in the


 <summary>Click to expand</summary>
 <p>Hidden content goes here.</p>

02. <mark>

You can use to highlight text.

<p>This is some <mark>highlighted</mark> text.</p>

03. <cite>

The tag defines the name of a creative work (books, poems, songs, movies, etc.)

  <p>Life is what happens when you're busy making other plans.</p>
  <cite>John Lennon</cite>

04. <kbd>

Use for displaying keyboard input or user commands.

<p>To save your work, press <kbd>Ctrl + S</kbd>.</p>

05. <time>


<p>Her birthday is on <time datetime="1990-05-23">May 23rd</time>.</p>

06. <abbr>

The tag defines an abbreviation or an acronym.

<p><abbr title="World Wide Web">WWW</abbr> is amazing!</p>

07. <wbr>

The (Word Break Opportunity) element specifies where in a text it would be ok to add a line break.


08. <figcaption>

Pair this tag with the

tag to add captions to images or multimedia content, improving accessibility and user understanding.

  <img src="cat.jpg" alt="An image of a cat">
  <figcaption>This is a cat on a skateboard.</figcaption>

09. <progress>

Create dynamic progress bars with the tag. It’s especially useful when indicating the completion status of tasks or forms.

<progress value="50" max="100"></progress>

10. <samp>

The tag is used to represent sample output from a computer program. It’s particularly handy when documenting code and demonstrating expected results.

<p>The output is <samp>Hello, World!</samp></p>
Html5 Development
Web Development
Front End Development
Recommended from ReadMedium