DEV Community

Discussion on: 5 HTML Tags That Almost Nobody Knows

Collapse
 
alexstandiford profile image
Alex Standiford

One that I use all the time that doesn't get enough love - The definition list

These things don't seem to ever get any love, and there's so many circumstances in-which they are the best syntax for the job.

Ironically enough - the Summary section of this post is a perfect opportunity to use it!

<dl>
    <dh>Summary</dh>
    <dt>&lt;mark&gt;</dt>
    <dd>for highlighting text.</dd>
    <dt>&lt;address&gt;</dt>
    <dd>for showing contact information.</dd>
    <dt>&lt;noscript&gt;</dt>
    <dd>for displaying alternate HTML content if the browser does not support scripting.</dd>
    <dt>&lt;time&gt;</dt>
    <dd>representing a specific period in time.</dd>
    <dt>&lt;var&gt;</dt>
    <dd>for indicating mathematical variables like x & y.</dd>
</dl>
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ayabouchiha profile image
Aya Bouchiha

Thank you so much for the information, perhaps, I will create another post with the same idea as this post. I will not forget to add the definition list in the next one!
Have an amazing day!