HTML offers a vast array of elements that can enhance the way you present content on the web. While most developers are familiar with standard tags like
, and
, there are some lesser-known elements that can be quite useful. Here are five unique HTML elements you might not know about:
1. Tag
The tag defines a short quotation. It’s perfect for including inline quotes within your text.
Here’s an example:
Hi 👋, my name is Matin.
Result⤵️
Hi 👋, my name is Matin.
2.
Tag
The
HTML element renders text with a strikethrough, or a line through it. Use the
element to represent things that are no longer relevant or accurate.
Here’s an example:
Old Price 100
New price 50
Result⤵️
Old Price 100
New price 50
3. Tag
The HTML element represents text that is marked or highlighted for reference or notation purposes due to its relevance in the enclosing context.
Here’s an example:
Hi, you should Follow me for more amazing content. Thanks!
Result⤵️
Hi, you should Follow me for more amazing content. Thanks!
4. Tag
The HTML element represents small annotations that are rendered above, below, or next to base text, usually used for showing the pronunciation of East Asian characters.
Here’s an example:
マティン (Matin)
Result⤵️
マティン (Matin)
5.
Tag
The
element.
Here’s an example:
open>
Details
Something small enough to escape casual notice.
Result⤵️
These unique HTML elements can be extremely helpful in specific scenarios, enhancing the semantic richness and functionality of your web content. Next time you’re building a webpage, consider incorporating these tags to improve the user experience and accessibility of your site.