Monday, 23 Jun 2025
  • My Feed
  • My Interests
  • My Saves
  • History
  • Blog
Subscribe
Code Reveals
  • Home
  • HTML

    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
    What is Symentic HTML

    What is Symentic HTML?

    By Chief Editor

    What is a Meta Tag in HTML?

    By Chief Editor

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

    By Chief Editor

    Difference between HTML Tag and HTML Element in HTML?

    By Chief Editor
  • JavaScript

    Explain Deep Copy and Shallow Copy in JavaScript.

    By Chief Editor

    Is JavaScript a synchronous or asynchronous language?

    By Chief Editor

    What is the Event Loop in JavaScript?

    By Chief Editor

    Explain Call, Apply and Bind in JavaScript.

    By Chief Editor

    What is a Closure in JavaScript?

    By Chief Editor

    What is the this Keyword in JavaScript?

    By Chief Editor
  • Frontend Interview

    Is JavaScript a synchronous or asynchronous language?

    By Chief Editor

    Explain Deep Copy and Shallow Copy in JavaScript.

    By Chief Editor

    What is Position in CSS?

    By Chief Editor

    Difference Between position: relative and position: absolute in CSS

    By Chief Editor

    What is Symentic HTML?

    By Chief Editor

    What is Block level Element and Inline Level Element?

    By Chief Editor
  • Backend Interview

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

    By Chief Editor

    What is Redux, and how does it work?

    By Chief Editor

    What is Virtual DOM in React?

    By Chief Editor

    Difference between document.createElement and document.createElementFragement in JavaScript?

    By Chief Editor

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

    By Chief Editor

    System Design and Frontend System Design: An In-depth Overview

    By Chief Editor
  • Other
    • Contact Us
  • Frontend Interview
  • Backend Interview
  • React Interview
  • JavaScript Interview
  • Contacts Us
  • Advertise with Us
  • Complaint
  • Privacy Policy
  • Cookie Policy
  • Submit a Tip
  • 🔥
  • ReactJS
  • JavaScript
  • JavaScript Interview
  • React Interview
  • HTML
  • Frontend Interview
  • CSS
  • Redux
  • Javascript
  • System Design
Font ResizerAa
Code RevealsCode Reveals
  • My Saves
  • My Interests
  • My Feed
  • History
  • Technology
Search
  • Homepage
  • Pages
    • Home
    • Blog Index
    • Contact Us
    • Search Page
    • 404 Page
  • Features
    • Post Headers
    • Layout
  • Personalized
    • My Feed
    • My Saves
    • My Interests
    • History
  • About
  • Categories
    • Technology
  • Categories
Have an existing account? Sign In
Follow US
© 2022 Code Reveals Inc. All Rights Reserved.

Home 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

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

What is NodeJS and its main features?

Understanding Node.js and Its Key Features Node.js has revolutionized the way developers build web applications…

By Chief Editor

Mastering Star Rating Systems: Best Practices and Optimized Code Examples

Star rating systems are a common and effective way to collect user feedback on products,…

By Chief Editor

You Might Also Like

HTML

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

By Chief Editor
What is Symentic HTML
Frontend InterviewHTML

What is Symentic HTML?

By Chief Editor
Frontend InterviewHTML

What is Block level Element and Inline Level Element?

By Chief Editor
HTML

Difference between HTML Tag and HTML Element in HTML?

By Chief Editor

Code Reveals is a cutting-edge software development company dedicated to delivering high-quality, scalable, and innovative solutions for businesses of all sizes. Our team of expert developers, designers, and engineers specializes in creating custom software, web applications, mobile apps, and enterprise solutions that are tailored to meet the unique needs of our clients.

Most Famous
  • HTML
  • CSS
  • JavaScript
  • Node
Top Categories
  • Frontend Interview
  • Backend Interview
  • React Interview
  • JavaScript Interview
Usefull Links
  • Contacts Us
  • Advertise with Us
  • Complaint
  • Privacy Policy
  • Cookie Policy
  • Submit a Tip

©2025  Code Reveals Inc. All Rights Reserved.

Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?