Back to tools
HTML Elements Reference
Complete reference for HTML elements — click any tag to copy it. 126 elements documented.
126 of 126
TagCategoryDescriptionKey AttributesType
Document
Root element of an HTML document.lang, dirblock
Document
Container for document metadata — not displayed in the browser.—meta
Document
Contains all visible page content.onload, onunloadblock
Metadata
Defines the document title shown in the browser tab and search results.—meta
Metadata
Defines metadata: charset, viewport, description, OG tags, and more.name, content, charset, http-equivvoid
Metadata
Links external resources such as stylesheets or favicons.rel, href, type, media, sizes, crossoriginvoid
Metadata
Embeds CSS styles directly in the document.media, type, noncemeta
Metadata
Sets the base URL for all relative URLs in the page.href, targetvoid
Sectioning
Introductory content or navigation for its nearest sectioning ancestor.—block
Sectioning
A section containing navigation links.—block
Sectioning
The dominant content of the document. Only one per page.—block
Sectioning
Self-contained composition that can be independently distributed (blog post, news).—block
Sectioning
A thematic grouping of content, typically with a heading.—block
Sectioning
Content tangentially related to surrounding content (sidebars, pull quotes).—block
Sectioning
Footer for its nearest sectioning ancestor — copyright, links, contact info.—block
Sectioning
Contact information for the nearest article or body ancestor.—block
Sectioning
First-level section heading. One per page recommended for SEO.—block
Sectioning
Second-level section heading.—block
Sectioning
Third-level section heading.—block
Sectioning
Fourth-level section heading.—block
Sectioning
Fifth-level section heading.—block
Sectioning
Sixth-level section heading.—block
Text
A paragraph of text.—block
Text
Extended quotation from another source.citeblock
Text
Preformatted text — preserves whitespace and line breaks exactly.—block
Text
Thematic break between paragraph-level elements.—void
Text
Line break within text flow.—void
Text
Ordered (numbered) list.start, reversed, typeblock
Text
Unordered (bulleted) list.—block
Text
List item inside ol, ul, or menu.valueblock
Text
Description list containing term/definition pairs.—block
Text
Term in a description list.—block
Text
Description or definition for the preceding dt element.—block
Text
Self-contained content referenced from the main flow (images, code, diagrams).—block
Text
Caption or legend for the nearest figure element.—block
Text
Generic block-level container with no inherent semantic meaning.—block
Text
Disclosure widget — user can reveal additional information by clicking its summary.openblock
Text
Visible heading for a details element — toggles its expanded/collapsed state.—block
Text
A dialog box or modal window.openblock
Inline
Hyperlink to URLs, anchors, email addresses, or phone numbers.href, target, rel, download, hreflanginline
Inline
Generic inline container with no inherent semantic meaning.—inline
Inline
Strong importance — typically bold. Use for importance, not decoration.—inline
Inline
Stressed emphasis — changes the meaning of the sentence.—inline
Inline
Bring attention to text without extra importance (keywords, product names).—inline
Inline
Alternate voice or mood — foreign phrases, technical terms, inner thoughts.—inline
Inline
Non-textual annotation — spelling errors, proper nouns in some languages.—inline
Inline
Content no longer accurate or relevant (strikethrough).—inline
Inline
Side comment, fine print, copyright, or legal notices.—inline
Inline
Text highlighted for reference or notation — like a highlighter pen.—inline
Inline
Text deleted from the document (tracked changes).cite, datetimeinline
Inline
Text inserted into the document (tracked changes).cite, datetimeinline
Inline
Subscript text — chemical formulas, mathematical notation.—inline
Inline
Superscript text — footnote markers, exponents.—inline
Inline
Inline fragment of computer code.—inline
Inline
User keyboard input or voice input.—inline
Inline
Sample output from a computer program.—inline
Inline
Variable name in a mathematical expression or programming context.—inline
Inline
Reference to a creative work — book title, film, article.—inline
Inline
Short inline quotation.citeinline
Inline
Abbreviation or acronym with optional expanded form via title attribute.titleinline
Inline
The term being defined within its surrounding context.titleinline
Inline
Machine-readable date and/or time.datetimeinline
Inline
Links content with a machine-readable translation.valueinline
Inline
Word break opportunity — hints where the browser may break a long word.—void
Inline
Isolates a span of text that might be formatted in a different direction.dirinline
Inline
Overrides the text directionality of its contents.dirinline
Inline
Container for ruby annotation — East Asian typography pronunciation guide.—inline
Inline
Ruby text — the annotation component of a ruby annotation.—inline
Inline
Fallback parentheses for browsers without ruby annotation support.—inline
Forms
Interactive form that can be submitted to a server.action, method, enctype, novalidate, autocomplete, targetblock
Forms
Interactive control for user data — types: text, email, checkbox, radio, file, range, etc.type, name, value, placeholder, required, disabled, readonly, patternvoid
Forms
Multi-line plain-text editing control.name, rows, cols, placeholder, required, disabled, maxlengthblock
Forms
Clickable button — types: submit, reset, button.type, name, value, disabled, form, formactioninline
Forms
Control providing a menu of options.name, multiple, size, required, disabled, forminline
Forms
Option in a select, optgroup, or datalist element.value, selected, disabled, labelinline
Forms
Group of related options within a select element.label, disabledinline
Forms
Caption for a form control. Associates via for attribute or by wrapping the control.for, forminline
Forms
Groups related form controls together — displayed with a border by default.name, disabled, formblock
Forms
Caption for the content of its parent fieldset.—block
Forms
Predefined options for an input element's autocomplete list.—block
Forms
Result of a calculation or user action.name, for, forminline
Forms
Completion progress of a task.value, maxinline
Forms
Scalar measurement within a known range (disk usage, test score).value, min, max, low, high, optimuminline
Tables
Tabular data arranged in rows and columns.—block
Tables
Title or caption of a table — should be its first child element.—block
Tables
Group of rows forming the header of a table.—block
Tables
Group of rows forming the main body of a table.—block
Tables
Group of rows forming the footer of a table.—block
Tables
Table row containing th or td cells.—block
Tables
Table header cell.scope, colspan, rowspan, abbr, headersblock
Tables
Table data cell.colspan, rowspan, headersblock
Tables
Group of columns in a table for shared styling.spanblock
Tables
Single column within a colgroup.spanvoid
Embedded
Embeds an image into the document.src, alt, width, height, loading, decoding, srcset, sizesvoid
Embedded
Container for multiple image sources for responsive or art-directed images.—block
Embedded
Specifies multiple media resources for picture, audio, or video.src, srcset, type, media, sizes, width, heightvoid
Embedded
Embeds a video player.src, controls, autoplay, muted, loop, poster, width, height, preloadblock
Embedded
Embeds an audio player.src, controls, autoplay, muted, loop, preload, crossoriginblock
Embedded
Timed text track for video/audio — captions, subtitles, chapters.kind, src, srclang, label, defaultvoid
Embedded
Nested browsing context — embeds another HTML page.src, srcdoc, width, height, allow, sandbox, loading, nameblock
Embedded
Integration point for external content or a plugin.src, type, width, heightvoid
Embedded
Embeds an external resource as image, nested page, or plugin.data, type, width, height, name, usemapblock
Embedded
Bitmap canvas for 2D/3D rendering via JavaScript APIs.width, heightblock
Embedded
Container for scalable vector graphics.width, height, viewBox, xmlns, fill, strokeblock
Embedded
Image map — defines clickable areas on an image.nameblock
Embedded
Clickable hot-spot area inside an image map.shape, coords, href, alt, target, relvoid
Embedded
MathML formula embedded in an HTML document.display, xmlnsblock
Scripting
Embeds or references executable script — usually JavaScript.src, type, async, defer, crossorigin, integrity, noncemeta
Scripting
Fallback content rendered when scripting is disabled or unsupported.—block
Scripting
Inert HTML fragment not rendered but accessible via JavaScript.shadowrootmodemeta
Scripting
Placeholder inside a web component's shadow DOM that users can fill.nameinline
Deprecated
Centers content horizontally. Deprecated — use CSS text-align or flexbox.—block
Deprecated
Defines font size, color, and face. Deprecated — use CSS.color, face, sizeinline
Deprecated
Renders text one font-size larger. Deprecated — use CSS font-size.—inline
Deprecated
Strikethrough text. Deprecated — use del or CSS text-decoration.—inline
Deprecated
Teletype / monospace text. Deprecated — use code or CSS font-family.—inline
Deprecated
Defines a frame within a frameset. Deprecated — use iframe.src, name, scrolling, noresizevoid
Deprecated
Container for frame elements replacing the body. Deprecated entirely.cols, rowsblock
Deprecated
Fallback content for browsers without frame support. Deprecated.—block
Deprecated
Scrolling text area. Deprecated — use CSS animations.behavior, direction, scrollamount, scrolldelay, loopblock
Deprecated
Acronym. Deprecated — use abbr instead.titleinline
Deprecated
Embeds a Java applet. Deprecated and removed from the spec.code, width, height, archiveblock
Deprecated
Sets a default font for the entire document. Deprecated — use CSS.color, face, sizevoid
Deprecated
Directory listing. Deprecated — use ul instead.—block
Deprecated
Makes text blink. Non-standard, never part of the spec.—inline
Deprecated
Prevents line breaks. Non-standard — use CSS white-space: nowrap.—inline
Type:blockinlinevoidmeta— click any tag name to copy it