DEV Community

Cover image for Some handy HTML tags can do to make things easier

Posted on

Some handy HTML tags can do to make things easier

HTML (Hypertext Markup Language) is a standard markup language used to create web pages. Tags are like blocks to give special semantics meaning to the content and help browser rendering. Thus, they play a very important role in SEO(search engine optimization).

Although HTML tags is widely known and widely used, some of them have been long forgotten. In this article I’ll share some HTML tags that have helped me a lot when developing websites over the years 🎉


<summary> & <details>

The <summary> tag defines a visible heading for the <details> element. The heading can be clicked to view/hide the details.

The <details> tag is often used to create an accordion that the user can open and close.



The <dialog> tag defines a dialog box or other interactive components like alert, inspector, or subwindow.


The <time> tag defines a specific time/date. It does not render anything special on webpage but it's extremely helpful for better search engine results or custom features such as reminders.


The <datalist> tag is used to define the list of valid dropdown list for your various element and provide an "autocomplete" feature.


The <progress> tag represents the completion progress of a task on a bar indicator.


The <small> tag defines smaller text like copyright or legal text. Although it may be perceived to violate the principle of separation between structure and presentation, but it's valid in HTML5. Therefore, please determining whether to use <small> or CSS your content accordingly.


I hope you find this helpful and don't forget to check on the cross-browser compatibility before adding more semantics to your HTML. Your webpages will become more user friendly and more machine-readable. Thank you 😊

Top comments (2)

halivert profile image

Hey! Great article, nice explanation and summary of the elements, also I want to add that the datalist elements are not the only valid options.

junlow profile image
jun • Edited

Thank you! Yeah it's not, but it's good that <datalist> tag can be used in conjunction with an <input> tag.