Hidden Gem Tags in HTML
Sources:
Overview
About
This note is about hidden gem HTML tags:
<abbr>
<base>
<cite>
<details>
and<summary>
<fieldset>
and<legend>
<mark>
<optgroup>
<abbr>
The <abbr>
HTML tag represents an abbreviation or acronym of a phrase or longer word.
This tag helps improve accessibility and user understanding by providing an explanation when a user hovers over it.
<base>
The <base>
HTML tag defines the base Uniform Resource Locator (URL) for all relative URLs in a web page.
This is handy when you want to create a shared starting point for all relative URLs on a web page, making it easier to navigate and load resources.
WARNING
There can be only one single
<base>
tag in the document and it should be inside the<head>
tag.
<cite>
The <cite>
HTML tag is used to specify the title of a creative work such as quoted content, books, websites, paintings, etc.
It helps maintain proper citation formatting and semantics.
<details>
and <summary>
See Also:
When you want to include collapsible content on your web page, then you can use the <details>
and <summary>
tags.
The <details>
tag creates a container for hidden content, while the <summary>
tag provides a clickable label to toggle the visibility of that content.
<fieldset>
and <legend>
The <fieldset>
tag is used to group related elements in a form and the <legend>
tag is used with <fieldset>
to define a title for the <fieldset>
tag.
This is useful for creating more efficient and accessible forms.
<mark>
The <mark>
tag is used to highlight text on your web pages.
When you need to emphasize or highlight certain text, then you can use the <mark>
tag. It applies a background color to the marked text and makes it stand out.
<optgroup>
The <optgroup>
tag is used to group related options in a <select>
HTML tag. This can be used when you are working with large dropdown menus or a long list of options.
See Also
Appendix
Note created on 2024-04-12 and last modified on 2024-04-12.
Backlinks
(c) No Clocks, LLC | 2024