All Tag Html5

5 min read Jun 28, 2024
All Tag Html5

All HTML5 Tags

HTML5 introduced a number of new tags and features that improved the structure, semantics, and functionality of web pages. Here is a comprehensive list of all the HTML5 tags, categorized by their purpose:

Structural Tags

Heading Tags:

  • <h1> - <h6>: Define headings of different levels of importance.

Paragraph Tags:

  • <p>: Defines a paragraph.
  • <br>: Inserts a line break.

Text Formatting Tags:

  • <strong>: Strong emphasis on text.
  • <b>: Bold text.
  • <em>: Emphasize text.
  • <i>: Italic text.
  • <mark>: Mark or highlight text.
  • <small>: Smaller text.
  • <del>: Deleted text.
  • <ins>: Inserted text.
  • <sub>: Subscript text.
  • <sup>: Superscript text.

Other Structural Tags:

  • <hr>: Horizontal rule.
  • <pre>: Preserves formatting and whitespace.
  • <code>: Represents a code snippet.
  • <kbd>: Keyboard input.
  • <samp>: Sample output from a program.
  • <var>: Represents a variable.

Semantic Tags

Heading Tags:

  • <h1> - <h6>: Define headings of different levels of importance.

Paragraph Tags:

  • <p>: Defines a paragraph.
  • <article>: Represents a self-contained composition.
  • <aside>: Represents content tangentially related to the main content.
  • <nav>: Defines a navigation section.
  • <section>: Defines a section within a document.
  • <header>: Defines the header of a document.
  • <footer>: Defines the footer of a document.
  • <address>: Represents the address of the document.
  • <figure>: Represents self-contained content, such as illustrations, diagrams, photographs, code listings, etc.
  • <figcaption>: Provides a caption for the figure element.
  • <details>: Provides details that can be toggled open and closed.
  • <summary>: Provides a summary for the details element.

Multimedia Tags:

  • <audio>: Embeds audio content.
  • <video>: Embeds video content.
  • <source>: Specifies alternative media sources.
  • <track>: Provides text tracks (e.g., subtitles, captions) for media.
  • <canvas>: Provides a drawing surface for graphical content.

Interactive Tags:

  • <form>: Defines a form for user input.
  • <input>: Creates an input field for user input.
  • <button>: Creates a button.
  • <select>: Creates a drop-down list.
  • <textarea>: Creates a multi-line text input area.
  • <datalist>: Provides a list of suggestions for an <input> element.
  • <output>: Displays the result of a calculation.
  • <progress>: Displays the progress of a task.
  • <meter>: Displays a scalar measurement.

Other Tags

  • <meta>: Provides metadata about the HTML document.
  • <link>: Links to external resources, such as stylesheets and scripts.
  • <style>: Defines style rules for the document.
  • <script>: Embeds JavaScript code.
  • <iframe>: Embeds another HTML document.
  • <embed>: Embeds external content, such as Flash files or PDF documents.
  • <object>: Embeds an object, such as a Java applet or a Flash file.

This list provides a comprehensive overview of all the tags available in HTML5. It's important to note that some tags, like <h1> - <h6>, serve multiple purposes and can be used for both structure and semantics. It's also important to remember that the best practices and proper usage of these tags are constantly evolving. Always consult the official HTML5 documentation for the most up-to-date information and guidelines.

Related Post


Latest Posts