Saturday, 23 Aug 2025
  • My Interests
  • My Saves
  • Try Intents
Subscribe
Focus - Code Reveals
  • Home
  • HTML
    What is Symentic HTML

    What is Symentic HTML?

    By Chief Editor

    What is Block level Element and Inline Level Element?

    By Chief Editor

    What is the difference between “HTML” and “HTML5”?

    By Chief Editor

    What are the different types of HTML tags?

    By Chief Editor

    What are the async and defer attributes in the “script” tag?

    By Chief Editor

    Difference between HTML Tag and HTML Element in HTML?

    By Chief Editor
  • JavaScript

    What is Scope in JavaScript?

    By Chief Editor

    What are the map, filter, and reduce methods in JavaScript?

    By Chief Editor

    What is a Promise in JavaScript, and what are its parameters?

    By Chief Editor

    What is the this Keyword in JavaScript?

    By Chief Editor

    What is hoisting in JavaScript with an example?

    By Chief Editor

    How to Reverse a String in JavaScript: Two Essential Methods

    By Chief Editor
  • Frontend Interview

    What is Position in CSS?

    By Chief Editor

    What is Block level Element and Inline Level Element?

    By Chief Editor

    How to Reverse a String in JavaScript: Two Essential Methods

    By Chief Editor

    What are the Lexical Scope in JavaScript?

    By Chief Editor

    Difference Between position: relative and position: absolute in CSS

    By Chief Editor

    What is Symentic HTML?

    By Chief Editor
  • Backend Interview

    What is a Function Component in React?

    By Chief Editor

    What is Flex Box in CSS?

    By Chief Editor

    Difference between display none and visibility hidden in CSS?

    By Chief Editor

    Mastering Star Rating Systems: Best Practices and Optimized Code Examples

    By Chief Editor

    What is memoization in JavaScript?

    By Chief Editor

    What is a Meta Tag in HTML?

    By Chief Editor
  • Nodejs
  • JavaScript Interview
  • React Interview
  • Frontend Interview
  • Backend Interview
  • Contact Us
  • Advertise with Us
  • Complaint
  • Cookies Policy
  • Privacy Policy
  • Donate
  • 🔥
  • ReactJS
  • JavaScript
  • JavaScript Interview
  • React Interview
  • Frontend Interview
  • HTML
  • CSS
  • Redux
  • Backend Interview
  • NodeJS
Font ResizerAa
Focus - Code RevealsFocus - Code Reveals
  • My Saves
  • My Interests
  • My Feed
  • History
  • Technology
Search
  • Homepage
  • ReactJS
  • JavaScript
  • JavaScript Interview
  • HTML
  • CSS
  • Backend Interview
Have an existing account? Sign In
Follow US
© 2022 Code Reveals Inc. All Rights Reserved.
Home Blog What are the different types of HTML tags?
HTML

What are the different types of HTML tags?

Chief Editor
Last updated: February 16, 2025 6:00 pm
Chief Editor
Share
SHARE

HTML tags are the building blocks of an HTML document. They define the structure and content of web pages. The tags can be broadly categorized based on their function and the type of content they represent. Here’s an overview of the different types of HTML tags:

1. Structural Tags

These tags define the structure of an HTML document.

  • <html>: The root element that wraps the entire HTML document.
  • <head>: Contains metadata, links to external resources, and other information about the document (e.g., title, style, script).
  • <body>: Contains the visible content of the web page.
  • <header>: Represents introductory content or a navigation section.
  • <footer>: Represents footer content, usually for legal or contact information.
  • <section>: Defines a section in a document, such as a group of related content.
  • <article>: Represents independent, self-contained content like a blog post or news article.
  • <nav>: Defines a navigation section for links to other parts of the site.
  • <main>: Represents the dominant content of the <body>.

2. Text Content Tags

These tags are used to define and format text content.

  • <h1>, <h2>, <h3>, <h4>, <h5>, <h6>: Headings, where <h1> is the highest level and <h6> is the lowest.
  • <p>: Paragraphs of text.
  • <a>: Hyperlinks to other web pages or resources.
  • <b>: Bold text.
  • <i>: Italic text.
  • <strong>: Text with strong emphasis (typically rendered in bold).
  • <em>: Text with emphasized meaning (typically rendered in italics).
  • <u>: Underlined text.
  • <br>: Line break, used to break the content into a new line.
  • <span>: A generic container for inline content.
  • <blockquote>: A block-level quote, used for quoting content from another source.
  • <code>: Defines inline code.
  • <pre>: Preformatted text, preserves whitespace and line breaks.
  • <mark>: Highlights or marks text.
  • <small>: Renders text in smaller font size.

3. List Tags

Used to define different types of lists.

  • <ul>: Unordered list (bulleted list).
  • <ol>: Ordered list (numbered list).
  • <li>: List item, used inside both <ul> and <ol>.

4. Table Tags

Used to define tables and their content.

  • <table>: Defines a table.
  • <tr>: Table row.
  • <th>: Table header cell.
  • <td>: Table data cell.
  • <caption>: Provides a title for a table.
  • <thead>: Groups the header content in a table.
  • <tbody>: Groups the body content in a table.
  • <tfoot>: Groups the footer content in a table.

5. Form Tags

These tags define interactive forms and user input elements.

  • <form>: Defines an HTML form for user input.
  • <input>: Defines an input field (e.g., text, checkbox, radio button).
  • <textarea>: Defines a multi-line text input.
  • <button>: Defines a clickable button.
  • <select>: Defines a dropdown list.
  • <option>: Defines options inside a <select> dropdown.
  • <label>: Defines a label for an input element.
  • <fieldset>: Groups related form elements.
  • <legend>: Provides a caption for a <fieldset>.

6. Media Tags

These tags are used to embed multimedia content like images, videos, and audio.

  • <img>: Defines an image.
  • <audio>: Embeds audio content (e.g., music or sound files).
  • <video>: Embeds video content.
  • <source>: Defines multiple media sources for <audio> or <video>.
  • <iframe>: Embeds another document (such as another webpage) within the current page.
  • <embed>: Embeds external content like multimedia or plugins.
  • <object>: Embeds an object such as a PDF, Flash, or other media.

7. Semantic Tags

These tags provide meaning to the content, making it more accessible and search-engine friendly.

  • <article>: Defines a self-contained content block (e.g., a blog post).
  • <section>: Represents a generic section of content.
  • <aside>: Defines content that is tangentially related to the main content (e.g., sidebars).
  • <header>: Defines introductory content or navigation links.
  • <footer>: Defines footer content.
  • <figure>: Used to group media content like images, illustrations, or videos, along with their captions.
  • <figcaption>: Defines a caption for <figure> content.
  • <time>: Defines a specific time or date.
  • <details>: Defines additional details that can be toggled by the user.
  • <summary>: Defines a summary or heading for the <details> element.

8. Meta Tags

Meta tags provide metadata about the HTML document.

  • <meta>: Defines metadata such as character encoding, viewport settings, or document description.
  • <title>: Sets the title of the web page, which appears in the browser tab.
  • <link>: Defines relationships between the document and external resources (e.g., linking a stylesheet).
  • <style>: Defines CSS styles directly in the HTML document.
  • <script>: Defines JavaScript code or links to external scripts.

9. Link and Anchor Tags

Used to create links to other pages or resources.

  • <a>: Defines a hyperlink to another webpage or resource.
  • <link>: Specifies relationships between the document and external resources (commonly used to link stylesheets).

10. Miscellaneous Tags

Other utility tags that don’t fit neatly into the above categories.

  • <div>: A generic container element, often used for layout and grouping content.
  • <span>: A generic inline container, used for styling or grouping inline content.

Summary Table:

TypeExample Tags
Structural<html>, <head>, <body>, <header>, <footer>
Text Content<h1>, <p>, <a>, <strong>, <em>
Lists<ul>, <ol>, <li>
Tables<table>, <tr>, <td>, <th>
Forms<form>, <input>, <textarea>, <button>
Media<img>, <audio>, <video>, <iframe>
Semantic<article>, <section>, <nav>, <aside>
Meta<meta>, <title>, <link>, <style>
Links<a>, <link>
Miscellaneous<div>, <span>, <br>, <code>

These categories help organize and define the functionality of HTML tags, and knowing which tags to use in each context is crucial for building structured, maintainable, and accessible web pages.

Share This Article
Email Copy Link Print
Previous Article Difference between display none and visibility hidden in CSS?
Next Article Difference between HTML Tag and HTML Element in HTML?
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Your Trusted Source for Accurate and Timely Updates!

Our commitment to accuracy, impartiality, and delivering breaking news as it happens has earned us the trust of a vast audience. Stay ahead with real-time updates on the latest events, trends.
FacebookLike
XFollow
InstagramFollow
YoutubeSubscribe
LinkedInFollow
QuoraFollow
- Advertisement -
Ad imageAd image

Popular Posts

Explain the useState and useEffect hooks in React

Hooks are special functions in React that let you use state and other React features…

By Chief Editor

How can you delay the dispatch in React?

To delay a dispatch in React, especially when using something like Redux or React state…

By Chief Editor

What is Higher Order Component in React?

What is a Higher-Order Component (HOC) in React? A Higher-Order Component (HOC) is an advanced…

By Chief Editor

You Might Also Like

HTML

What is Doctype HTML in HTML?

By Chief Editor
What is Symentic HTML
Frontend InterviewHTML

What is Symentic HTML?

By Chief Editor
HTML

Difference between HTML Tag and HTML Element in HTML?

By Chief Editor
HTML

What is the difference between “HTML” and “HTML5”?

By Chief Editor

Focus by CodeReveals is your dedicated platform for mastering tech interviews and advancing your development skills. Whether you’re aiming to become a Frontend Developer, Backend Developer, or simply preparing for your next big interview, we’re here to guide you every step of the way.

Our mission is to help aspiring developers gain real-world knowledge, build confidence, and succeed in technical interviews. We offer structured content, curated interview questions, coding challenges, and practical guidance — all designed by experienced professionals who understand what top tech companies are looking for.

At Improve, we don’t just teach — we prepare you to think like a developer, solve like an engineer, and present like a pro.

Join us and start improving today — because your dream tech job is within reach

Most Famous
  • HTML
  • CSS
  • JavaScript
  • NodeJS
Top Categories
  • JavaScript Interview
  • React Interview
  • Frontend Interview
  • Backend Interview
Usefull Links
  • Contact Us
  • Advertise with Us
  • Complaint
  • Cookies Policy
  • Privacy Policy
  • Donate

©2025  Code Reveals Inc. All Rights Reserved.

Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?