Complete reference of all HTML5 tags with descriptions, categories, and examples.
| Tag | Description | Category |
|---|---|---|
| <!DOCTYPE> | Defines the document type and HTML version (HTML5: <!DOCTYPE html>) |
| Tag | Description | Category |
|---|---|---|
| <a> | Defines a hyperlink. href attribute sets the destination URL. | Flow |
| <abbr> | Defines an abbreviation or acronym. Use title attribute for full form. | Text |
| <address> | Defines contact information for the author/owner of a document. | Flow |
| <area> | Defines an area inside an image map (clickable region). | Media/Embed |
| <article> | Defines independent, self-contained content (blog post, news article, forum post). | Flow |
| <aside> | Defines content aside from page content (sidebar, callout). | Flow |
| <audio> | Defines embedded sound content. Supports controls, autoplay, loop attributes. | Media/Embed |
| Tag | Description | Category |
|---|---|---|
| <b> | Defines bold text (visual only, no extra importance). Prefer <strong> for importance. | Text |
| <base> | Specifies the base URL for all relative URLs in a document. Goes inside <head>. | |
| <bdi> | Isolates text that might be formatted in a different direction (bidirectional isolation). | Text |
| <bdo> | Overrides the current text direction. dir='rtl' reverses text direction. | Text |
| <blockquote> | Defines a section quoted from another source. cite attribute specifies source URL. | Flow |
| <body> | Defines the document's body - contains all visible page content. | |
| <br> | Inserts a single line break (void element - no closing tag). | Text |
| <button> | Defines a clickable button. type: submit (default), reset, button. | Form |
| Tag | Description | Category |
|---|---|---|
| <canvas> | Used to draw graphics via JavaScript (2D, WebGL). Needs width and height. | Media/Embed |
| <caption> | Defines a table caption, placed immediately after <table> tag. | Table |
| <cite> | Defines the title of a work (book, song, film). Renders in italic. | Text |
| <code> | Defines a piece of computer code. Monospace font. Use inside <pre> for blocks. | Text |
| <col> | Specifies column properties for each column within a <colgroup> element. | Table |
| <colgroup> | Specifies a group of one or more columns for formatting in a table. | Table |
| Tag | Description | Category |
|---|---|---|
| <data> | Links content with a machine-readable translation via value attribute. | Flow |
| <datalist> | Specifies a list of pre-defined options for an <input> element (autocomplete). | Form |
| <dd> | Defines a description/value in a description list (<dl>). Paired with <dt>. | Flow |
| <del> | Defines deleted text (strikethrough). Pairs with <ins> for tracked changes. | Text |
| <details> | Defines additional details that user can show/hide. Works with <summary>. | Flow |
| <dfn> | Defines a term being defined in a sentence. | Text |
| <dialog> | Defines a dialog box or subwindow. JS: element.showModal() / element.close(). | Flow |
| <div> | Defines a division/section (block-level). Generic container for styling/layout. | Flow |
| <dl> | Defines a description list. Contains <dt> (terms) and <dd> (descriptions). | Flow |
| <dt> | Defines a term/name in a description list <dl>. | Flow |
| Tag | Description | Category |
|---|---|---|
| <em> | Defines emphasized text (semantic). Renders as italic. Screen readers change tone. | Text |
| <embed> | Defines a container for external application or interactive content (plugins). | Media/Embed |
| Tag | Description | Category |
|---|---|---|
| <fieldset> | Groups related elements in a form. Use with <legend> for a caption. | Form |
| <figcaption> | Defines a caption for a <figure> element. | Flow |
| <figure> | Specifies self-contained content (image, diagram) with optional <figcaption>. | Flow |
| <footer> | Defines a footer for a document or section (copyright, links, contact). | Flow |
| <form> | Creates an HTML form for user input. action, method (get/post) attributes. | Form |
| Tag | Description | Category |
|---|---|---|
| <h1>-<h6> | Heading tags. <h1> is most important. Use hierarchically for document structure and SEO. | Flow |
| <head> | Contains metadata: <title>, <meta>, <link>, <script>, <style>. | |
| <header> | Defines a header for a document or section (logo, navigation, search). | Flow |
| <hr> | Defines a thematic break (horizontal rule). Void element. | Flow |
| <html> | Root element of an HTML page. lang attribute specifies document language. |
| Tag | Description | Category |
|---|---|---|
| <i> | Defines italic text (visual). Use for technical terms, foreign words, thoughts. | Text |
| <iframe> | Defines an inline frame to embed another HTML page. src, width, height. | Media/Embed |
| <img> | Embeds an image. src (required), alt (required), width, height, loading attributes. | Media/Embed |
| <input> | Creates an input field. type: text, email, password, number, date, checkbox, radio, file, submit, etc. | Form |
| <ins> | Defines inserted text (underlined). Pairs with <del> for tracked changes. | Text |
| Tag | Description | Category |
|---|---|---|
| <kbd> | Defines keyboard input (displayed in monospace). E.g. Press <kbd>Ctrl+C</kbd>. | Text |
| Tag | Description | Category |
|---|---|---|
| <label> | Defines a label for an <input>. for attribute links to input id. Improves accessibility. | Form |
| <legend> | Defines a caption for a <fieldset>. | Form |
| <li> | Defines a list item, used inside <ul>, <ol>, or <menu>. | Flow |
| <link> | Defines a relationship between the document and an external resource. Used for CSS. Goes in <head>. |
| Tag | Description | Category |
|---|---|---|
| <main> | Defines the main content of a document (unique, not repeated). One per page. | Flow |
| <map> | Defines an image map (clickable areas). Used with <area> and <img usemap>. | Media/Embed |
| <mark> | Defines highlighted/marked text (yellow background by default). | Text |
| <menu> | Defines an unordered list of commands/options. Alternative to <ul> for menus. | Flow |
| <meta> | Defines metadata (charset, viewport, description, OG tags). Self-closing. Goes in <head>. | |
| <meter> | Defines a scalar measurement within a known range. min, max, value, low, high, optimum. | Form |
| Tag | Description | Category |
|---|---|---|
| <nav> | Defines a set of navigation links (main navigation, table of contents). | Flow |
| <noscript> | Defines alternate content for users with JavaScript disabled. |
| Tag | Description | Category |
|---|---|---|
| <object> | Defines an embedded object (PDF, Flash, etc). Fallback content inside. | Media/Embed |
| <ol> | Defines an ordered list (numbered). type: 1, A, a, I, i. reversed, start attributes. | Flow |
| <optgroup> | Groups related options inside a <select> dropdown. label attribute. | Form |
| <option> | Defines an option in a <select> list or <datalist>. value, selected attributes. | Form |
| <output> | Represents the result of a calculation or user action. for, form attributes. | Form |
| Tag | Description | Category |
|---|---|---|
| <p> | Defines a paragraph. Block-level. Browsers add margin before and after. | Flow |
| <picture> | Defines multiple sources for an image for responsive/art-direction. Contains <source> and <img>. | Media/Embed |
| <pre> | Defines preformatted text (preserves whitespace and line breaks). Monospace font. | Flow |
| <progress> | Represents the progress of a task. value and max attributes. | Form |
| Tag | Description | Category |
|---|---|---|
| <q> | Defines a short inline quotation (adds quotation marks). cite attribute for source. | Text |
| Tag | Description | Category |
|---|---|---|
| <rp> | Provides fallback parentheses for browsers that don't support ruby annotations. | Text |
| <rt> | Defines pronunciation of characters presented in a ruby annotation. | Text |
| <ruby> | Defines a ruby annotation (East Asian typography with pronunciation). | Text |
| Tag | Description | Category |
|---|---|---|
| <s> | Defines text that is no longer correct (strikethrough). Not for deletions (use <del>). | Text |
| <samp> | Defines sample output from a computer program (monospace). | Text |
| <script> | Defines client-side JavaScript. src, type, defer, async, nomodule attributes. | |
| <section> | Defines a standalone section with a thematic grouping of content. | Flow |
| <select> | Creates a dropdown list. name, multiple, size, required attributes. Contains <option>. | Form |
| <small> | Defines smaller text (fine print, copyright, side comments). | Text |
| <source> | Specifies media resources for <video>, <audio>, <picture>. Void element. | Media/Embed |
| <span> | Defines an inline container for text (styling, scripting hooks). No semantic meaning. | Text |
| <strong> | Defines important text (semantic bold). Screen readers give more emphasis. | Text |
| <style> | Defines internal CSS styles. Goes in <head>. Use <link> for external stylesheets. | |
| <sub> | Defines subscript text (chemical formulas: H2O). Rendered below baseline. | Text |
| <summary> | Defines a visible heading for <details>. Clicking toggles the details. | Flow |
| <sup> | Defines superscript text (footnotes, math powers: x-). Rendered above baseline. | Text |
| Tag | Description | Category |
|---|---|---|
| <table> | Defines an HTML table. Contains <thead>, <tbody>, <tfoot>, <tr>, <th>, <td>. | Table |
| <tbody> | Groups the body content in a table. Allows styling rows separately. | Table |
| <td> | Defines a data cell in a table. colspan and rowspan attributes for spanning. | Table |
| <template> | Holds HTML that is not rendered initially but can be used via JavaScript. | |
| <textarea> | Defines a multi-line text input area. rows, cols, maxlength, placeholder attributes. | Form |
| <tfoot> | Groups footer content in a table. | Table |
| <th> | Defines a header cell. Bold and centered by default. scope: col, row, colgroup, rowgroup. | Table |
| <thead> | Groups header rows in a table. | Table |
| <time> | Represents a specific time. datetime attribute for machine-readable format. | Text |
| <title> | Defines the document title (shown in browser tab and search results). Goes in <head>. | |
| <tr> | Defines a row in a table. Contains <th> or <td> cells. | Table |
| <track> | Specifies text tracks (subtitles, captions) for <video>/<audio>. kind, src, srclang. | Media/Embed |
| Tag | Description | Category |
|---|---|---|
| <u> | Defines underlined text. Use for misspellings, Chinese proper nouns. Not for links. | Text |
| <ul> | Defines an unordered list (bullets). Nesting creates nested lists. | Flow |
| Tag | Description | Category |
|---|---|---|
| <var> | Defines a variable in programming or mathematical expression. Renders in italic. | Text |
| <video> | Embeds video. src, controls, autoplay, loop, muted, poster, width, height. | Media/Embed |
| Tag | Description | Category |
|---|---|---|
| <wbr> | Defines a possible line-break opportunity in text (where browser may break if needed). | Text |