Intermediate HTML Tags - LinkedIn Post
Intermediate HTML Tags Every Developer Should Know
1. <details> & <summary>
- Used to create expandable/collapsible content.
- Example:
<details>
<summary>Show more</summary>
Hidden content here.
</details>
2. <fieldset> & <legend>
- Used for grouping form elements with a caption.
- Great for accessibility and clean UI.
3. <output>
- Displays result of a calculation or script.
- Example use in forms with JavaScript.
4. <progress>
- Displays a progress bar (e.g., file upload).
- Example:
<progress value="70" max="100"></progress>
5. <meter>
- Represents scalar values (e.g., score, battery level).
- Example:
<meter value="0.6">60%</meter>
6. <mark>
- Highlights or emphasizes a part of the text.
Intermediate HTML Tags - LinkedIn Post
- Useful in search results:
<p>This is a <mark>highlighted</mark> word.</p>
7. <time>
- Represents a specific time or duration.
- Helps with search engines and accessibility.
8. <template>
- Invisible DOM content that can be cloned via JavaScript.
- Useful for dynamic content creation.
9. <abbr>
- Defines abbreviations or acronyms.
- Example:
<abbr title="Cascading Style Sheets">CSS</abbr>
Use these tags to build better, semantic, accessible websites!
#HTML #WebDevelopment #Frontend #Accessibility #HTMLTips