Complete HTML Tag List

🧱 Introduction to HTML Tags

HTML tags are the building blocks of web pages. They define the structure, content, and behavior of elements on a page. This tutorial provides an overview of all common HTML tags you will use in web development. πŸ—οΈ

>>β€œMastering HTML tags means mastering the language of the web.” 🌐

πŸ“Œ What is an HTML Tag?

An HTML tag is a keyword enclosed in angle brackets like <tag>. Most tags come in pairs with opening and closing tags, e.g., <p>...</p>. Some tags are self-closing.

🏷️ Common HTML Tags List

Here’s a categorized list of commonly used HTML tags:

πŸ”€ Text Content Tags
  • <h1> to <h6> β€” Headings of different levels
  • <p> β€” Paragraph
  • <br> β€” Line break (self-closing)
  • <hr> β€” Horizontal rule (self-closing)
  • <pre> β€” Preformatted text
  • <blockquote> β€” Quotation block
πŸ“ Inline Text Formatting
  • <strong> β€” Important text (bold)
  • <em> β€” Emphasized text (italic)
  • <mark> β€” Highlighted text
  • <small> β€” Smaller text
  • <del> β€” Deleted text (strikethrough)
  • <ins> β€” Inserted text (underline)
  • <code> β€” Inline code
  • <span> β€” Generic inline container
πŸ“‘ Grouping Content Tags
  • <div> β€” Generic block container
  • <section> β€” Thematic grouping
  • <article> β€” Self-contained content
  • <header> β€” Introductory content
  • <footer> β€” Footer content
  • <nav> β€” Navigation links
  • <aside> β€” Sidebar or tangential content
πŸ“‹ List Tags
  • <ul> β€” Unordered (bulleted) list
  • <ol> β€” Ordered (numbered) list
  • <li> β€” List item
  • <dl> β€” Description list
  • <dt> β€” Term/name in description list
  • <dd> β€” Description of term
πŸ”— Link and Media Tags
  • <a> β€” Hyperlink
  • <img> β€” Image (self-closing)
  • <video> β€” Video player
  • <audio> β€” Audio player
  • <source> β€” Media source (self-closing)
  • <track> β€” Text tracks for media (self-closing)
  • <iframe> β€” Inline frame
πŸ–‹οΈ Form Tags
  • <form> β€” Form container
  • <input> β€” Input field (self-closing)
  • <textarea> β€” Multi-line text input
  • <button> β€” Button
  • <select> β€” Drop-down list
  • <option> β€” Option in select
  • <label> β€” Label for form element
  • <fieldset> β€” Group related form controls
  • <legend> β€” Caption for fieldset
πŸ› οΈ Table Tags
  • <table> β€” Table container
  • <thead> β€” Table header group
  • <tbody> β€” Table body group
  • <tfoot> β€” Table footer group
  • <tr> β€” Table row
  • <th> β€” Table header cell
  • <td> β€” Table data cell
βš™οΈ Metadata Tags
  • <head> β€” Document head section
  • <title> β€” Document title
  • <meta> β€” Metadata (self-closing)
  • <link> β€” External resource (self-closing)
  • <style> β€” Internal CSS
  • <script> β€” JavaScript code

🧠 Tips & Best Practices

  • Use semantic tags like header, article, and footer for better accessibility.
  • Close all tags properly to ensure consistent rendering.
  • Use descriptive tags to improve SEO and readability.

πŸ”— Useful Resources

>>β€œKnowing your HTML tags is the foundation of crafting beautiful, accessible, and functional websites.” πŸ—οΈβœ¨