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.β ποΈβ¨