[]previous and next page

HTMLIntrinsicElements

Attribute maps for every HTML element the DOM library types, keyed by tag name.

Attribute maps for every HTML element the DOM library types, keyed by tag name. The compiler decides the namespace from context, so this map covers the HTML meaning only. Shared names (a, script, style, title) are merged with their SVG and MathML meanings in intrinsic.ts.

Import#

ts
import type { HTMLIntrinsicElements } from "@shadow-js/web";

Signature#

ts
interface HTMLIntrinsicElements {
  /** The HTML `<a>` element: a hyperlink. */
  a: ElementProps<
    HTMLElementTagNameMap["a"],
    AnchorAttributes &
      Aliases<AnchorAttributes, { hrefLang: "hreflang"; referrerPolicy: "referrerpolicy" }>
  >;
  /** The HTML `<abbr>` element: an abbreviation or acronym. */
  abbr: ElementProps<HTMLElementTagNameMap["abbr"]>;
  /** The HTML `<address>` element: contact information for its nearest article or the page. */
  address: ElementProps<HTMLElementTagNameMap["address"]>;
  /** The HTML `<area>` element: a clickable region inside an image map. */
  area: VoidElementProps<
    HTMLElementTagNameMap["area"],
    AreaAttributes &
      Aliases<AreaAttributes, { hrefLang: "hreflang"; referrerPolicy: "referrerpolicy" }>
  >;
  /** The HTML `<article>` element: a self-contained composition, such as a post or a card. */
  article: ElementProps<HTMLElementTagNameMap["article"]>;
  /** The HTML `<aside>` element: content tangential to the content around it. */
  aside: ElementProps<HTMLElementTagNameMap["aside"]>;
  /** The HTML `<audio>` element: embedded sound content. */
  audio: MediaElementProps<
    HTMLElementTagNameMap["audio"],
    AudioAttributes & Aliases<AudioAttributes, { autoPlay: "autoplay"; crossOrigin: "crossorigin" }>
  >;
  /** The HTML `<b>` element: text set apart without extra importance, such as keywords. */
  b: ElementProps<HTMLElementTagNameMap["b"]>;
  /** The HTML `<base>` element: the base URL and default target for the document's relative URLs. */
  base: VoidElementProps<HTMLElementTagNameMap["base"], BaseAttributes>;
  /** The HTML `<bdi>` element: text isolated from the surrounding text direction. */
  bdi: ElementProps<HTMLElementTagNameMap["bdi"]>;
  /** The HTML `<bdo>` element: text with an explicit direction override. */
  bdo: ElementProps<HTMLElementTagNameMap["bdo"]>;
  /** The HTML `<blockquote>` element: an extended quotation. */
  blockquote: ElementProps<HTMLElementTagNameMap["blockquote"], CiteAttributes>;
  /** The HTML `<body>` element: the document's content. */
  body: WindowElementProps<HTMLElementTagNameMap["body"]>;
  /** The HTML `<br>` element: a line break. */
  br: VoidElementProps<HTMLElementTagNameMap["br"]>;
  /** The HTML `<button>` element: a clickable button. */
  button: ElementProps<
    HTMLElementTagNameMap["button"],
    ButtonAttributes &
      Aliases<
        ButtonAttributes,
        {
          formAction: "formaction";
          formEncType: "formenctype";
          formMethod: "formmethod";
          formNoValidate: "formnovalidate";
          formTarget: "formtarget";
          popoverTarget: "popovertarget";
          popoverTargetAction: "popovertargetaction";
        }
      >
  >;
  /** The HTML `<canvas>` element: a bitmap drawing surface for scripts. */
  canvas: ElementProps<HTMLElementTagNameMap["canvas"], CanvasAttributes>;
  /** The HTML `<caption>` element: the title of a table. */
  caption: ElementProps<HTMLElementTagNameMap["caption"]>;
  /** The HTML `<cite>` element: the title of a cited work. */
  cite: ElementProps<HTMLElementTagNameMap["cite"]>;
  /** The HTML `<code>` element: a fragment of computer code. */
  code: ElementProps<HTMLElementTagNameMap["code"]>;
  /** The HTML `<col>` element: one or more columns of a table, for shared attributes. */
  col: VoidElementProps<HTMLElementTagNameMap["col"], ColAttributes>;
  /** The HTML `<colgroup>` element: a group of table columns. */
  colgroup: ElementProps<HTMLElementTagNameMap["colgroup"], ColAttributes>;
  /** The HTML `<data>` element: content paired with a machine-readable value. */
  data: ElementProps<HTMLElementTagNameMap["data"], DataAttributes>;
  /** The HTML `<datalist>` element: the predefined options of an input. */
  datalist: ElementProps<HTMLElementTagNameMap["datalist"]>;
  /** The HTML `<dd>` element: the description of a term in a description list. */
  dd: ElementProps<HTMLElementTagNameMap["dd"]>;
  /** The HTML `<del>` element: text removed from the document. */
  del: ElementProps<
    HTMLElementTagNameMap["del"],
    ModAttributes & Aliases<ModAttributes, { dateTime: "datetime" }>
  >;
  /** The HTML `<details>` element: a disclosure widget whose content shows when it is open. */
  details: ElementProps<HTMLElementTagNameMap["details"], DetailsAttributes>;
  /** The HTML `<dfn>` element: the defining instance of a term. */
  dfn: ElementProps<HTMLElementTagNameMap["dfn"]>;
  /** The HTML `<dialog>` element: a dialog box or modal. */
  dialog: ElementProps<HTMLElementTagNameMap["dialog"], DialogAttributes>;
  /** The HTML `<div>` element: a generic block container. */
  div: ElementProps<HTMLElementTagNameMap["div"]>;
  /** The HTML `<dl>` element: a description list. */
  dl: ElementProps<HTMLElementTagNameMap["dl"]>;
  /** The HTML `<dt>` element: a term in a description list. */
  dt: ElementProps<HTMLElementTagNameMap["dt"]>;
  /** The HTML `<em>` element: text with stress emphasis. */
  em: ElementProps<HTMLElementTagNameMap["em"]>;
  /** The HTML `<embed>` element: external content from a plugin or another resource. */
  embed: VoidElementProps<HTMLElementTagNameMap["embed"], EmbedAttributes>;
  /** The HTML `<fieldset>` element: a group of form controls. */
  fieldset: ElementProps<HTMLElementTagNameMap["fieldset"], FieldsetAttributes>;
  /** The HTML `<figcaption>` element: the caption of a figure. */
  figcaption: ElementProps<HTMLElementTagNameMap["figcaption"]>;
  /** The HTML `<figure>` element: self-contained content, such as an illustration, with an optional caption. */
  figure: ElementProps<HTMLElementTagNameMap["figure"]>;
  /** The HTML `<footer>` element: the footer of its nearest section or the page. */
  footer: ElementProps<HTMLElementTagNameMap["footer"]>;
  /** The HTML `<form>` element: a form that submits user input. */
  form: ElementProps<
    HTMLElementTagNameMap["form"],
    FormAttributes &
      Aliases<
        FormAttributes,
        {
          acceptCharset: "accept-charset";
          encType: "enctype";
          autoComplete: "autocomplete";
          noValidate: "novalidate";
        }
      >
  >;
  /** The HTML `<h1>` element: a level-1 section heading. */
  h1: ElementProps<HTMLElementTagNameMap["h1"]>;
  /** The HTML `<h2>` element: a level-2 section heading. */
  h2: ElementProps<HTMLElementTagNameMap["h2"]>;
  /** The HTML `<h3>` element: a level-3 section heading. */
  h3: ElementProps<HTMLElementTagNameMap["h3"]>;
  /** The HTML `<h4>` element: a level-4 section heading. */
  h4: ElementProps<HTMLElementTagNameMap["h4"]>;
  /** The HTML `<h5>` element: a level-5 section heading. */
  h5: ElementProps<HTMLElementTagNameMap["h5"]>;
  /** The HTML `<h6>` element: a level-6 section heading. */
  h6: ElementProps<HTMLElementTagNameMap["h6"]>;
  /** The HTML `<head>` element: the document's metadata. */
  head: ElementProps<HTMLElementTagNameMap["head"]>;
  /** The HTML `<header>` element: introductory content of its nearest section or the page. */
  header: ElementProps<HTMLElementTagNameMap["header"]>;
  /** The HTML `<hgroup>` element: a heading grouped with related content such as a subtitle. */
  hgroup: ElementProps<HTMLElementTagNameMap["hgroup"]>;
  /** The HTML `<hr>` element: a thematic break between paragraphs. */
  hr: VoidElementProps<HTMLElementTagNameMap["hr"]>;
  /** The HTML `<html>` element: the root of an HTML document. */
  html: ElementProps<HTMLElementTagNameMap["html"]>;
  /** The HTML `<i>` element: text in an alternate voice, such as a technical term. */
  i: ElementProps<HTMLElementTagNameMap["i"]>;
  /** The HTML `<iframe>` element: a nested browsing context showing another page. */
  iframe: ElementProps<
    HTMLElementTagNameMap["iframe"],
    IFrameAttributes &
      IFrameLegacyAttributes &
      Aliases<
        IFrameAttributes,
        { allowFullScreen: "allowfullscreen"; referrerPolicy: "referrerpolicy" }
      >
  >;
  /** The HTML `<img>` element: an image. */
  img: VoidElementProps<
    HTMLElementTagNameMap["img"],
    ImgAttributes &
      Aliases<
        ImgAttributes,
        {
          crossOrigin: "crossorigin";
          fetchPriority: "fetchpriority";
          isMap: "ismap";
          referrerPolicy: "referrerpolicy";
          srcSet: "srcset";
          useMap: "usemap";
        }
      >
  >;
  /** The HTML `<input>` element: a form control for user input, typed by its `type`. */
  input: VoidElementProps<
    HTMLElementTagNameMap["input"],
    InputAttributes &
      Aliases<
        InputAttributes,
        {
          readOnly: "readonly";
          maxLength: "maxlength";
          minLength: "minlength";
          autoComplete: "autocomplete";
          formAction: "formaction";
          formEncType: "formenctype";
          formMethod: "formmethod";
          formNoValidate: "formnovalidate";
          formTarget: "formtarget";
          popoverTarget: "popovertarget";
          popoverTargetAction: "popovertargetaction";
        }
      >
  >;
  /** The HTML `<ins>` element: text added to the document. */
  ins: ElementProps<
    HTMLElementTagNameMap["ins"],
    ModAttributes & Aliases<ModAttributes, { dateTime: "datetime" }>
  >;
  /** The HTML `<kbd>` element: user input, such as keyboard keys. */
  kbd: ElementProps<HTMLElementTagNameMap["kbd"]>;
  /** The HTML `<label>` element: the caption of a form control. */
  label: ElementProps<
    HTMLElementTagNameMap["label"],
    LabelAttributes & Aliases<LabelAttributes, { htmlFor: "for" }>
  >;
  /** The HTML `<legend>` element: the caption of a fieldset. */
  legend: ElementProps<HTMLElementTagNameMap["legend"]>;
  /** The HTML `<li>` element: an item in a list. */
  li: ElementProps<HTMLElementTagNameMap["li"], LIAttributes>;
  /** The HTML `<link>` element: a relationship to an external resource, such as a stylesheet. */
  link: VoidElementProps<
    HTMLElementTagNameMap["link"],
    LinkAttributes &
      Aliases<
        LinkAttributes,
        {
          crossOrigin: "crossorigin";
          fetchPriority: "fetchpriority";
          hrefLang: "hreflang";
          imageSizes: "imagesizes";
          imageSrcSet: "imagesrcset";
          referrerPolicy: "referrerpolicy";
        }
      >
  >;
  /** The HTML `<main>` element: the dominant content of the page. */
  main: ElementProps<HTMLElementTagNameMap["main"]>;
  /** The HTML `<map>` element: an image map, with its areas. */
  map: ElementProps<HTMLElementTagNameMap["map"], MapAttributes>;
  /** The HTML `<mark>` element: text highlighted for reference. */
  mark: ElementProps<HTMLElementTagNameMap["mark"]>;
  /** The HTML `<menu>` element: a list of commands, semantically an unordered list. */
  menu: ElementProps<HTMLElementTagNameMap["menu"]>;
  /** The HTML `<meta>` element: metadata that other head elements cannot express. */
  meta: VoidElementProps<
    HTMLElementTagNameMap["meta"],
    MetaAttributes & Aliases<MetaAttributes, { httpEquiv: "http-equiv" }>
  >;
  /** The HTML `<meter>` element: a scalar value within a known range. */
  meter: ElementProps<HTMLElementTagNameMap["meter"], MeterAttributes>;
  /** The HTML `<nav>` element: a section of navigation links. */
  nav: ElementProps<HTMLElementTagNameMap["nav"]>;
  /** The HTML `<noscript>` element: content shown only when scripting is disabled. */
  noscript: ElementProps<HTMLElementTagNameMap["noscript"]>;
  /** The HTML `<object>` element: an external resource, such as a PDF or another page. */
  object: ElementProps<
    HTMLElementTagNameMap["object"],
    ObjectAttributes &
      Aliases<ObjectAttributes, { useMap: "usemap"; typeMustMatch: "typemustmatch" }>
  >;
  /** The HTML `<ol>` element: an ordered list. */
  ol: ElementProps<HTMLElementTagNameMap["ol"], OListAttributes>;
  /** The HTML `<optgroup>` element: a group of options in a select. */
  optgroup: ElementProps<HTMLElementTagNameMap["optgroup"], OptGroupAttributes>;
  /** The HTML `<option>` element: an option in a select or datalist. */
  option: TextElementProps<HTMLElementTagNameMap["option"], OptionAttributes>;
  /** The HTML `<output>` element: the result of a calculation or user action. */
  output: ElementProps<
    HTMLElementTagNameMap["output"],
    OutputAttributes & Aliases<OutputAttributes, { htmlFor: "for" }>
  >;
  /** The HTML `<p>` element: a paragraph. */
  p: ElementProps<HTMLElementTagNameMap["p"]>;
  /** The HTML `<picture>` element: alternative image sources for an img. */
  picture: ElementProps<HTMLElementTagNameMap["picture"]>;
  /** The HTML `<pre>` element: preformatted text, shown as written. */
  pre: ElementProps<HTMLElementTagNameMap["pre"]>;
  /** The HTML `<progress>` element: the progress of a task. */
  progress: ElementProps<HTMLElementTagNameMap["progress"], ProgressAttributes>;
  /** The HTML `<q>` element: a short inline quotation. */
  q: ElementProps<HTMLElementTagNameMap["q"], CiteAttributes>;
  /** The HTML `<rp>` element: fallback parentheses for browsers without ruby support. */
  rp: ElementProps<HTMLElementTagNameMap["rp"]>;
  /** The HTML `<rt>` element: the ruby text (pronunciation) of a ruby annotation. */
  rt: ElementProps<HTMLElementTagNameMap["rt"]>;
  /** The HTML `<ruby>` element: a ruby annotation, for East Asian pronunciation. */
  ruby: ElementProps<HTMLElementTagNameMap["ruby"]>;
  /** The HTML `<s>` element: text that is no longer accurate or relevant. */
  s: ElementProps<HTMLElementTagNameMap["s"]>;
  /** The HTML `<samp>` element: sample output from a program. */
  samp: ElementProps<HTMLElementTagNameMap["samp"]>;
  /** The HTML `<script>` element: an embedded or external script. */
  script: TextElementProps<
    HTMLElementTagNameMap["script"],
    ScriptAttributes &
      Aliases<
        ScriptAttributes,
        {
          crossOrigin: "crossorigin";
          fetchPriority: "fetchpriority";
          noModule: "nomodule";
          referrerPolicy: "referrerpolicy";
        }
      >
  >;
  /** The HTML `<search>` element: a search or filtering section. */
  search: ElementProps<HTMLElementTagNameMap["search"]>;
  /** The HTML `<section>` element: a generic standalone section of the document. */
  section: ElementProps<HTMLElementTagNameMap["section"]>;
  /** The HTML `<select>` element: a control to choose among options. */
  select: ElementProps<
    HTMLElementTagNameMap["select"],
    SelectAttributes & Aliases<SelectAttributes, { autoComplete: "autocomplete" }>
  >;
  /** The HTML `<slot>` element: a placeholder in a shadow tree, filled with light DOM content. */
  slot: ElementProps<HTMLElementTagNameMap["slot"], SlotAttributes>;
  /** The HTML `<small>` element: side comments and small print. */
  small: ElementProps<HTMLElementTagNameMap["small"]>;
  /** The HTML `<source>` element: a media source for picture, audio or video. */
  source: VoidElementProps<
    HTMLElementTagNameMap["source"],
    SourceAttributes & Aliases<SourceAttributes, { srcSet: "srcset" }>
  >;
  /** The HTML `<span>` element: a generic inline container. */
  span: ElementProps<HTMLElementTagNameMap["span"]>;
  /** The HTML `<strong>` element: text of strong importance. */
  strong: ElementProps<HTMLElementTagNameMap["strong"]>;
  /** The HTML `<style>` element: an embedded stylesheet. */
  style: TextElementProps<HTMLElementTagNameMap["style"], StyleElementAttributes>;
  /** The HTML `<sub>` element: subscript text. */
  sub: ElementProps<HTMLElementTagNameMap["sub"]>;
  /** The HTML `<summary>` element: the visible summary of a details element. */
  summary: ElementProps<HTMLElementTagNameMap["summary"]>;
  /** The HTML `<sup>` element: superscript text. */
  sup: ElementProps<HTMLElementTagNameMap["sup"]>;
  /** The HTML `<table>` element: a table of data. */
  table: ElementProps<HTMLElementTagNameMap["table"], TableAttributes>;
  /** The HTML `<tbody>` element: the body rows of a table. */
  tbody: ElementProps<HTMLElementTagNameMap["tbody"]>;
  /** The HTML `<td>` element: a data cell of a table. */
  td: ElementProps<
    HTMLElementTagNameMap["td"],
    TableCellAttributes & Aliases<TableCellAttributes, { colSpan: "colspan"; rowSpan: "rowspan" }>
  >;
  /** The HTML `<template>` element: inert content cloned by scripts. */
  template: ElementProps<HTMLElementTagNameMap["template"], TemplateAttributes>;
  /** The HTML `<textarea>` element: a multi-line text control. */
  textarea: TextElementProps<
    HTMLElementTagNameMap["textarea"],
    TextAreaAttributes &
      Aliases<
        TextAreaAttributes,
        {
          autoComplete: "autocomplete";
          maxLength: "maxlength";
          minLength: "minlength";
          readOnly: "readonly";
        }
      >
  >;
  /** The HTML `<tfoot>` element: the footer rows of a table. */
  tfoot: ElementProps<HTMLElementTagNameMap["tfoot"]>;
  /** The HTML `<th>` element: a header cell of a table. */
  th: ElementProps<
    HTMLElementTagNameMap["th"],
    TableHeaderAttributes &
      Aliases<TableHeaderAttributes, { colSpan: "colspan"; rowSpan: "rowspan" }>
  >;
  /** The HTML `<thead>` element: the header rows of a table. */
  thead: ElementProps<HTMLElementTagNameMap["thead"]>;
  /** The HTML `<time>` element: a date or time, with a machine-readable value. */
  time: ElementProps<
    HTMLElementTagNameMap["time"],
    TimeAttributes & Aliases<TimeAttributes, { dateTime: "datetime" }>
  >;
  /** The HTML `<title>` element: the document's title. */
  title: ElementProps<HTMLElementTagNameMap["title"]>;
  /** The HTML `<tr>` element: a row of a table. */
  tr: ElementProps<HTMLElementTagNameMap["tr"]>;
  /** The HTML `<track>` element: a timed text track, such as subtitles, for audio or video. */
  track: VoidElementProps<
    HTMLElementTagNameMap["track"],
    TrackAttributes & Aliases<TrackAttributes, { srcLang: "srclang" }>
  >;
  /** The HTML `<u>` element: text with an unarticulated annotation, such as a misspelling. */
  u: ElementProps<HTMLElementTagNameMap["u"]>;
  /** The HTML `<ul>` element: an unordered list. */
  ul: ElementProps<HTMLElementTagNameMap["ul"]>;
  /** The HTML `<var>` element: a variable in a mathematical or programming context. */
  var: ElementProps<HTMLElementTagNameMap["var"]>;
  /** The HTML `<video>` element: embedded video content. */
  video: VideoElementProps<
    HTMLElementTagNameMap["video"],
    VideoAttributes &
      Aliases<
        VideoAttributes,
        { autoPlay: "autoplay"; crossOrigin: "crossorigin"; playsInline: "playsinline" }
      >
  >;
  /** The HTML `<wbr>` element: a line break opportunity. */
  wbr: VoidElementProps<HTMLElementTagNameMap["wbr"]>;
  // Deprecated elements the DOM library still lists. Their legacy attributes are typed where they
  // are common; everything else is available through the global attributes.
  /** The HTML `<acronym>` element: an acronym (deprecated: use abbr). */
  acronym: ElementProps<HTMLElementDeprecatedTagNameMap["acronym"]>;
  /** The HTML `<applet>` element: an embedded Java applet (deprecated: use object). */
  applet: ElementProps<HTMLElementDeprecatedTagNameMap["applet"]>;
  /** The HTML `<basefont>` element: a default font (deprecated: use CSS). */
  basefont: VoidElementProps<HTMLElementDeprecatedTagNameMap["basefont"], FontAttributes>;
  /** The HTML `<bgsound>` element: a background sound (deprecated: use audio). */
  bgsound: VoidElementProps<HTMLElementDeprecatedTagNameMap["bgsound"], BgSoundAttributes>;
  /** The HTML `<big>` element: text one size larger (deprecated: use CSS). */
  big: ElementProps<HTMLElementDeprecatedTagNameMap["big"]>;
  /** The HTML `<blink>` element: blinking text (deprecated, never standard). */
  blink: ElementProps<HTMLElementDeprecatedTagNameMap["blink"]>;
  /** The HTML `<center>` element: centered content (deprecated: use CSS). */
  center: ElementProps<HTMLElementDeprecatedTagNameMap["center"]>;
  /** The HTML `<dir>` element: a directory list (deprecated: use ul). */
  dir: ElementProps<HTMLElementDeprecatedTagNameMap["dir"], DirAttributes>;
  /** The HTML `<font>` element: text with a font, size and color (deprecated: use CSS). */
  font: ElementProps<HTMLElementDeprecatedTagNameMap["font"], FontAttributes>;
  /** The HTML `<frame>` element: one frame of a frameset (deprecated). */
  frame: VoidElementProps<HTMLElementDeprecatedTagNameMap["frame"], FrameAttributes>;
  /** The HTML `<frameset>` element: a set of frames (deprecated). */
  frameset: WindowElementProps<HTMLElementDeprecatedTagNameMap["frameset"], FrameSetAttributes>;
  /** The HTML `<isindex>` element: a single-line search prompt (deprecated: use a form). */
  isindex: VoidElementProps<HTMLElementDeprecatedTagNameMap["isindex"]>;
  /** The HTML `<keygen>` element: a key-pair generator control (deprecated). */
  keygen: VoidElementProps<HTMLElementDeprecatedTagNameMap["keygen"], KeygenAttributes>;
  /** The HTML `<listing>` element: preformatted text (deprecated: use pre). */
  listing: ElementProps<HTMLElementDeprecatedTagNameMap["listing"]>;
  /** The HTML `<marquee>` element: scrolling text (deprecated: use CSS animations). */
  marquee: ElementProps<HTMLElementDeprecatedTagNameMap["marquee"], MarqueeAttributes>;
  /** The HTML `<menuitem>` element: a command in a menu (deprecated). */
  menuitem: ElementProps<HTMLElementDeprecatedTagNameMap["menuitem"]>;
  /** The HTML `<multicol>` element: multi-column layout (deprecated: use CSS). */
  multicol: ElementProps<HTMLElementDeprecatedTagNameMap["multicol"]>;
  /** The HTML `<nextid>` element: an identifier hint for editors (deprecated). */
  nextid: VoidElementProps<HTMLElementDeprecatedTagNameMap["nextid"], { n?: Maybe<string> }>;
  /** The HTML `<nobr>` element: text that does not wrap (deprecated: use CSS white-space). */
  nobr: ElementProps<HTMLElementDeprecatedTagNameMap["nobr"]>;
  /** The HTML `<noembed>` element: fallback content for embed (deprecated). */
  noembed: ElementProps<HTMLElementDeprecatedTagNameMap["noembed"]>;
  /** The HTML `<noframes>` element: content for browsers without frames (deprecated). */
  noframes: ElementProps<HTMLElementDeprecatedTagNameMap["noframes"]>;
  /** The HTML `<param>` element: a parameter of an object (deprecated). */
  param: VoidElementProps<HTMLElementDeprecatedTagNameMap["param"], ParamAttributes>;
  /** The HTML `<plaintext>` element: text shown as plain text to the end of the document (deprecated: use pre). */
  plaintext: ElementProps<HTMLElementDeprecatedTagNameMap["plaintext"]>;
  /** The HTML `<rb>` element: the base text of a ruby annotation (deprecated). */
  rb: ElementProps<HTMLElementDeprecatedTagNameMap["rb"]>;
  /** The HTML `<rtc>` element: a container of ruby text (deprecated). */
  rtc: ElementProps<HTMLElementDeprecatedTagNameMap["rtc"]>;
  /** The HTML `<spacer>` element: blank space (deprecated: use CSS). */
  spacer: VoidElementProps<HTMLElementDeprecatedTagNameMap["spacer"]>;
  /** The HTML `<strike>` element: struck-through text (deprecated: use s or del). */
  strike: ElementProps<HTMLElementDeprecatedTagNameMap["strike"]>;
  /** The HTML `<tt>` element: teletype text (deprecated: use code or CSS). */
  tt: ElementProps<HTMLElementDeprecatedTagNameMap["tt"]>;
  /** The HTML `<xmp>` element: example markup shown as written (deprecated: use pre). */
  xmp: ElementProps<HTMLElementDeprecatedTagNameMap["xmp"]>;
}

Members#

Name Type Description
a a: ElementProps< HTMLElementTagNameMap["a"], AnchorAttributes & Aliases<AnchorAttributes, { hrefLang: "hreflang"; referrerPolicy: "referrerpolicy" }> > The HTML <a> element: a hyperlink.
abbr abbr: ElementProps<HTMLElementTagNameMap["abbr"]> The HTML <abbr> element: an abbreviation or acronym.
address address: ElementProps<HTMLElementTagNameMap["address"]> The HTML <address> element: contact information for its nearest article or the page.
area area: VoidElementProps< HTMLElementTagNameMap["area"], AreaAttributes & Aliases<AreaAttributes, { hrefLang: "hreflang"; referrerPolicy: "referrerpolicy" }> > The HTML <area> element: a clickable region inside an image map.
article article: ElementProps<HTMLElementTagNameMap["article"]> The HTML <article> element: a self-contained composition, such as a post or a card.
aside aside: ElementProps<HTMLElementTagNameMap["aside"]> The HTML <aside> element: content tangential to the content around it.
audio audio: MediaElementProps< HTMLElementTagNameMap["audio"], AudioAttributes & Aliases<AudioAttributes, { autoPlay: "autoplay"; crossOrigin: "crossorigin" }> > The HTML <audio> element: embedded sound content.
b b: ElementProps<HTMLElementTagNameMap["b"]> The HTML <b> element: text set apart without extra importance, such as keywords.
base base: VoidElementProps<HTMLElementTagNameMap["base"], BaseAttributes> The HTML <base> element: the base URL and default target for the document's relative URLs.
bdi bdi: ElementProps<HTMLElementTagNameMap["bdi"]> The HTML <bdi> element: text isolated from the surrounding text direction.
bdo bdo: ElementProps<HTMLElementTagNameMap["bdo"]> The HTML <bdo> element: text with an explicit direction override.
blockquote blockquote: ElementProps<HTMLElementTagNameMap["blockquote"], CiteAttributes> The HTML <blockquote> element: an extended quotation.
body body: WindowElementProps<HTMLElementTagNameMap["body"]> The HTML <body> element: the document's content.
br br: VoidElementProps<HTMLElementTagNameMap["br"]> The HTML <br> element: a line break.
button button: ElementProps< HTMLElementTagNameMap["button"], ButtonAttributes & Aliases< ButtonAttributes, { formAction: "formaction"; formEncType: "formenctype"; formMethod: "formmethod"; formNoValidate: "formnovalidate"; formTarget: "formtarget"; popoverTarget: "popovertarget"; popoverTargetAction: "popovertargetaction"; } > > The HTML <button> element: a clickable button.
canvas canvas: ElementProps<HTMLElementTagNameMap["canvas"], CanvasAttributes> The HTML <canvas> element: a bitmap drawing surface for scripts.
caption caption: ElementProps<HTMLElementTagNameMap["caption"]> The HTML <caption> element: the title of a table.
cite cite: ElementProps<HTMLElementTagNameMap["cite"]> The HTML <cite> element: the title of a cited work.
code code: ElementProps<HTMLElementTagNameMap["code"]> The HTML <code> element: a fragment of computer code.
col col: VoidElementProps<HTMLElementTagNameMap["col"], ColAttributes> The HTML <col> element: one or more columns of a table, for shared attributes.
colgroup colgroup: ElementProps<HTMLElementTagNameMap["colgroup"], ColAttributes> The HTML <colgroup> element: a group of table columns.
data data: ElementProps<HTMLElementTagNameMap["data"], DataAttributes> The HTML <data> element: content paired with a machine-readable value.
datalist datalist: ElementProps<HTMLElementTagNameMap["datalist"]> The HTML <datalist> element: the predefined options of an input.
dd dd: ElementProps<HTMLElementTagNameMap["dd"]> The HTML <dd> element: the description of a term in a description list.
del del: ElementProps< HTMLElementTagNameMap["del"], ModAttributes & Aliases<ModAttributes, { dateTime: "datetime" }> > The HTML <del> element: text removed from the document.
details details: ElementProps<HTMLElementTagNameMap["details"], DetailsAttributes> The HTML <details> element: a disclosure widget whose content shows when it is open.
dfn dfn: ElementProps<HTMLElementTagNameMap["dfn"]> The HTML <dfn> element: the defining instance of a term.
dialog dialog: ElementProps<HTMLElementTagNameMap["dialog"], DialogAttributes> The HTML <dialog> element: a dialog box or modal.
div div: ElementProps<HTMLElementTagNameMap["div"]> The HTML <div> element: a generic block container.
dl dl: ElementProps<HTMLElementTagNameMap["dl"]> The HTML <dl> element: a description list.
dt dt: ElementProps<HTMLElementTagNameMap["dt"]> The HTML <dt> element: a term in a description list.
em em: ElementProps<HTMLElementTagNameMap["em"]> The HTML <em> element: text with stress emphasis.
embed embed: VoidElementProps<HTMLElementTagNameMap["embed"], EmbedAttributes> The HTML <embed> element: external content from a plugin or another resource.
fieldset fieldset: ElementProps<HTMLElementTagNameMap["fieldset"], FieldsetAttributes> The HTML <fieldset> element: a group of form controls.
figcaption figcaption: ElementProps<HTMLElementTagNameMap["figcaption"]> The HTML <figcaption> element: the caption of a figure.
figure figure: ElementProps<HTMLElementTagNameMap["figure"]> The HTML <figure> element: self-contained content, such as an illustration, with an optional caption.
footer footer: ElementProps<HTMLElementTagNameMap["footer"]> The HTML <footer> element: the footer of its nearest section or the page.
form form: ElementProps< HTMLElementTagNameMap["form"], FormAttributes & Aliases< FormAttributes, { acceptCharset: "accept-charset"; encType: "enctype"; autoComplete: "autocomplete"; noValidate: "novalidate"; } > > The HTML <form> element: a form that submits user input.
h1 h1: ElementProps<HTMLElementTagNameMap["h1"]> The HTML <h1> element: a level-1 section heading.
h2 h2: ElementProps<HTMLElementTagNameMap["h2"]> The HTML <h2> element: a level-2 section heading.
h3 h3: ElementProps<HTMLElementTagNameMap["h3"]> The HTML <h3> element: a level-3 section heading.
h4 h4: ElementProps<HTMLElementTagNameMap["h4"]> The HTML <h4> element: a level-4 section heading.
h5 h5: ElementProps<HTMLElementTagNameMap["h5"]> The HTML <h5> element: a level-5 section heading.
h6 h6: ElementProps<HTMLElementTagNameMap["h6"]> The HTML <h6> element: a level-6 section heading.
head head: ElementProps<HTMLElementTagNameMap["head"]> The HTML <head> element: the document's metadata.
header header: ElementProps<HTMLElementTagNameMap["header"]> The HTML <header> element: introductory content of its nearest section or the page.
hgroup hgroup: ElementProps<HTMLElementTagNameMap["hgroup"]> The HTML <hgroup> element: a heading grouped with related content such as a subtitle.
hr hr: VoidElementProps<HTMLElementTagNameMap["hr"]> The HTML <hr> element: a thematic break between paragraphs.
html html: ElementProps<HTMLElementTagNameMap["html"]> The HTML <html> element: the root of an HTML document.
i i: ElementProps<HTMLElementTagNameMap["i"]> The HTML <i> element: text in an alternate voice, such as a technical term.
iframe iframe: ElementProps< HTMLElementTagNameMap["iframe"], IFrameAttributes & IFrameLegacyAttributes & Aliases< IFrameAttributes, { allowFullScreen: "allowfullscreen"; referrerPolicy: "referrerpolicy" } > > The HTML <iframe> element: a nested browsing context showing another page.
img img: VoidElementProps< HTMLElementTagNameMap["img"], ImgAttributes & Aliases< ImgAttributes, { crossOrigin: "crossorigin"; fetchPriority: "fetchpriority"; isMap: "ismap"; referrerPolicy: "referrerpolicy"; srcSet: "srcset"; useMap: "usemap"; } > > The HTML <img> element: an image.
input input: VoidElementProps< HTMLElementTagNameMap["input"], InputAttributes & Aliases< InputAttributes, { readOnly: "readonly"; maxLength: "maxlength"; minLength: "minlength"; autoComplete: "autocomplete"; formAction: "formaction"; formEncType: "formenctype"; formMethod: "formmethod"; formNoValidate: "formnovalidate"; formTarget: "formtarget"; popoverTarget: "popovertarget"; popoverTargetAction: "popovertargetaction"; } > > The HTML <input> element: a form control for user input, typed by its type.
ins ins: ElementProps< HTMLElementTagNameMap["ins"], ModAttributes & Aliases<ModAttributes, { dateTime: "datetime" }> > The HTML <ins> element: text added to the document.
kbd kbd: ElementProps<HTMLElementTagNameMap["kbd"]> The HTML <kbd> element: user input, such as keyboard keys.
label label: ElementProps< HTMLElementTagNameMap["label"], LabelAttributes & Aliases<LabelAttributes, { htmlFor: "for" }> > The HTML <label> element: the caption of a form control.
legend legend: ElementProps<HTMLElementTagNameMap["legend"]> The HTML <legend> element: the caption of a fieldset.
li li: ElementProps<HTMLElementTagNameMap["li"], LIAttributes> The HTML <li> element: an item in a list.
link link: VoidElementProps< HTMLElementTagNameMap["link"], LinkAttributes & Aliases< LinkAttributes, { crossOrigin: "crossorigin"; fetchPriority: "fetchpriority"; hrefLang: "hreflang"; imageSizes: "imagesizes"; imageSrcSet: "imagesrcset"; referrerPolicy: "referrerpolicy"; } > > The HTML <link> element: a relationship to an external resource, such as a stylesheet.
main main: ElementProps<HTMLElementTagNameMap["main"]> The HTML <main> element: the dominant content of the page.
map map: ElementProps<HTMLElementTagNameMap["map"], MapAttributes> The HTML <map> element: an image map, with its areas.
mark mark: ElementProps<HTMLElementTagNameMap["mark"]> The HTML <mark> element: text highlighted for reference.
menu menu: ElementProps<HTMLElementTagNameMap["menu"]> The HTML <menu> element: a list of commands, semantically an unordered list.
meta meta: VoidElementProps< HTMLElementTagNameMap["meta"], MetaAttributes & Aliases<MetaAttributes, { httpEquiv: "http-equiv" }> > The HTML <meta> element: metadata that other head elements cannot express.
meter meter: ElementProps<HTMLElementTagNameMap["meter"], MeterAttributes> The HTML <meter> element: a scalar value within a known range.
nav nav: ElementProps<HTMLElementTagNameMap["nav"]> The HTML <nav> element: a section of navigation links.
noscript noscript: ElementProps<HTMLElementTagNameMap["noscript"]> The HTML <noscript> element: content shown only when scripting is disabled.
object object: ElementProps< HTMLElementTagNameMap["object"], ObjectAttributes & Aliases<ObjectAttributes, { useMap: "usemap"; typeMustMatch: "typemustmatch" }> > The HTML <object> element: an external resource, such as a PDF or another page.
ol ol: ElementProps<HTMLElementTagNameMap["ol"], OListAttributes> The HTML <ol> element: an ordered list.
optgroup optgroup: ElementProps<HTMLElementTagNameMap["optgroup"], OptGroupAttributes> The HTML <optgroup> element: a group of options in a select.
option option: TextElementProps<HTMLElementTagNameMap["option"], OptionAttributes> The HTML <option> element: an option in a select or datalist.
output output: ElementProps< HTMLElementTagNameMap["output"], OutputAttributes & Aliases<OutputAttributes, { htmlFor: "for" }> > The HTML <output> element: the result of a calculation or user action.
p p: ElementProps<HTMLElementTagNameMap["p"]> The HTML <p> element: a paragraph.
picture picture: ElementProps<HTMLElementTagNameMap["picture"]> The HTML <picture> element: alternative image sources for an img.
pre pre: ElementProps<HTMLElementTagNameMap["pre"]> The HTML <pre> element: preformatted text, shown as written.
progress progress: ElementProps<HTMLElementTagNameMap["progress"], ProgressAttributes> The HTML <progress> element: the progress of a task.
q q: ElementProps<HTMLElementTagNameMap["q"], CiteAttributes> The HTML <q> element: a short inline quotation.
rp rp: ElementProps<HTMLElementTagNameMap["rp"]> The HTML <rp> element: fallback parentheses for browsers without ruby support.
rt rt: ElementProps<HTMLElementTagNameMap["rt"]> The HTML <rt> element: the ruby text (pronunciation) of a ruby annotation.
ruby ruby: ElementProps<HTMLElementTagNameMap["ruby"]> The HTML <ruby> element: a ruby annotation, for East Asian pronunciation.
s s: ElementProps<HTMLElementTagNameMap["s"]> The HTML <s> element: text that is no longer accurate or relevant.
samp samp: ElementProps<HTMLElementTagNameMap["samp"]> The HTML <samp> element: sample output from a program.
script script: TextElementProps< HTMLElementTagNameMap["script"], ScriptAttributes & Aliases< ScriptAttributes, { crossOrigin: "crossorigin"; fetchPriority: "fetchpriority"; noModule: "nomodule"; referrerPolicy: "referrerpolicy"; } > > The HTML <script> element: an embedded or external script.
search search: ElementProps<HTMLElementTagNameMap["search"]> The HTML <search> element: a search or filtering section.
section section: ElementProps<HTMLElementTagNameMap["section"]> The HTML <section> element: a generic standalone section of the document.
select select: ElementProps< HTMLElementTagNameMap["select"], SelectAttributes & Aliases<SelectAttributes, { autoComplete: "autocomplete" }> > The HTML <select> element: a control to choose among options.
slot slot: ElementProps<HTMLElementTagNameMap["slot"], SlotAttributes> The HTML <slot> element: a placeholder in a shadow tree, filled with light DOM content.
small small: ElementProps<HTMLElementTagNameMap["small"]> The HTML <small> element: side comments and small print.
source source: VoidElementProps< HTMLElementTagNameMap["source"], SourceAttributes & Aliases<SourceAttributes, { srcSet: "srcset" }> > The HTML <source> element: a media source for picture, audio or video.
span span: ElementProps<HTMLElementTagNameMap["span"]> The HTML <span> element: a generic inline container.
strong strong: ElementProps<HTMLElementTagNameMap["strong"]> The HTML <strong> element: text of strong importance.
style style: TextElementProps<HTMLElementTagNameMap["style"], StyleElementAttributes> The HTML <style> element: an embedded stylesheet.
sub sub: ElementProps<HTMLElementTagNameMap["sub"]> The HTML <sub> element: subscript text.
summary summary: ElementProps<HTMLElementTagNameMap["summary"]> The HTML <summary> element: the visible summary of a details element.
sup sup: ElementProps<HTMLElementTagNameMap["sup"]> The HTML <sup> element: superscript text.
table table: ElementProps<HTMLElementTagNameMap["table"], TableAttributes> The HTML <table> element: a table of data.
tbody tbody: ElementProps<HTMLElementTagNameMap["tbody"]> The HTML <tbody> element: the body rows of a table.
td td: ElementProps< HTMLElementTagNameMap["td"], TableCellAttributes & Aliases<TableCellAttributes, { colSpan: "colspan"; rowSpan: "rowspan" }> > The HTML <td> element: a data cell of a table.
template template: ElementProps<HTMLElementTagNameMap["template"], TemplateAttributes> The HTML <template> element: inert content cloned by scripts.
textarea textarea: TextElementProps< HTMLElementTagNameMap["textarea"], TextAreaAttributes & Aliases< TextAreaAttributes, { autoComplete: "autocomplete"; maxLength: "maxlength"; minLength: "minlength"; readOnly: "readonly"; } > > The HTML <textarea> element: a multi-line text control.
tfoot tfoot: ElementProps<HTMLElementTagNameMap["tfoot"]> The HTML <tfoot> element: the footer rows of a table.
th th: ElementProps< HTMLElementTagNameMap["th"], TableHeaderAttributes & Aliases<TableHeaderAttributes, { colSpan: "colspan"; rowSpan: "rowspan" }> > The HTML <th> element: a header cell of a table.
thead thead: ElementProps<HTMLElementTagNameMap["thead"]> The HTML <thead> element: the header rows of a table.
time time: ElementProps< HTMLElementTagNameMap["time"], TimeAttributes & Aliases<TimeAttributes, { dateTime: "datetime" }> > The HTML <time> element: a date or time, with a machine-readable value.
title title: ElementProps<HTMLElementTagNameMap["title"]> The HTML <title> element: the document's title.
tr tr: ElementProps<HTMLElementTagNameMap["tr"]> The HTML <tr> element: a row of a table.
track track: VoidElementProps< HTMLElementTagNameMap["track"], TrackAttributes & Aliases<TrackAttributes, { srcLang: "srclang" }> > The HTML <track> element: a timed text track, such as subtitles, for audio or video.
u u: ElementProps<HTMLElementTagNameMap["u"]> The HTML <u> element: text with an unarticulated annotation, such as a misspelling.
ul ul: ElementProps<HTMLElementTagNameMap["ul"]> The HTML <ul> element: an unordered list.
var var: ElementProps<HTMLElementTagNameMap["var"]> The HTML <var> element: a variable in a mathematical or programming context.
video video: VideoElementProps< HTMLElementTagNameMap["video"], VideoAttributes & Aliases< VideoAttributes, { autoPlay: "autoplay"; crossOrigin: "crossorigin"; playsInline: "playsinline" } > > The HTML <video> element: embedded video content.
wbr wbr: VoidElementProps<HTMLElementTagNameMap["wbr"]> The HTML <wbr> element: a line break opportunity.
acronym acronym: ElementProps<HTMLElementDeprecatedTagNameMap["acronym"]> The HTML <acronym> element: an acronym (deprecated: use abbr).
applet applet: ElementProps<HTMLElementDeprecatedTagNameMap["applet"]> The HTML <applet> element: an embedded Java applet (deprecated: use object).
basefont basefont: VoidElementProps<HTMLElementDeprecatedTagNameMap["basefont"], FontAttributes> The HTML <basefont> element: a default font (deprecated: use CSS).
bgsound bgsound: VoidElementProps<HTMLElementDeprecatedTagNameMap["bgsound"], BgSoundAttributes> The HTML <bgsound> element: a background sound (deprecated: use audio).
big big: ElementProps<HTMLElementDeprecatedTagNameMap["big"]> The HTML <big> element: text one size larger (deprecated: use CSS).
blink blink: ElementProps<HTMLElementDeprecatedTagNameMap["blink"]> The HTML <blink> element: blinking text (deprecated, never standard).
center center: ElementProps<HTMLElementDeprecatedTagNameMap["center"]> The HTML <center> element: centered content (deprecated: use CSS).
dir dir: ElementProps<HTMLElementDeprecatedTagNameMap["dir"], DirAttributes> The HTML <dir> element: a directory list (deprecated: use ul).
font font: ElementProps<HTMLElementDeprecatedTagNameMap["font"], FontAttributes> The HTML <font> element: text with a font, size and color (deprecated: use CSS).
frame frame: VoidElementProps<HTMLElementDeprecatedTagNameMap["frame"], FrameAttributes> The HTML <frame> element: one frame of a frameset (deprecated).
frameset frameset: WindowElementProps<HTMLElementDeprecatedTagNameMap["frameset"], FrameSetAttributes> The HTML <frameset> element: a set of frames (deprecated).
isindex isindex: VoidElementProps<HTMLElementDeprecatedTagNameMap["isindex"]> The HTML <isindex> element: a single-line search prompt (deprecated: use a form).
keygen keygen: VoidElementProps<HTMLElementDeprecatedTagNameMap["keygen"], KeygenAttributes> The HTML <keygen> element: a key-pair generator control (deprecated).
listing listing: ElementProps<HTMLElementDeprecatedTagNameMap["listing"]> The HTML <listing> element: preformatted text (deprecated: use pre).
marquee marquee: ElementProps<HTMLElementDeprecatedTagNameMap["marquee"], MarqueeAttributes> The HTML <marquee> element: scrolling text (deprecated: use CSS animations).
menuitem menuitem: ElementProps<HTMLElementDeprecatedTagNameMap["menuitem"]> The HTML <menuitem> element: a command in a menu (deprecated).
multicol multicol: ElementProps<HTMLElementDeprecatedTagNameMap["multicol"]> The HTML <multicol> element: multi-column layout (deprecated: use CSS).
nextid nextid: VoidElementProps<HTMLElementDeprecatedTagNameMap["nextid"], { n?: Maybe<string> }> The HTML <nextid> element: an identifier hint for editors (deprecated).
nobr nobr: ElementProps<HTMLElementDeprecatedTagNameMap["nobr"]> The HTML <nobr> element: text that does not wrap (deprecated: use CSS white-space).
noembed noembed: ElementProps<HTMLElementDeprecatedTagNameMap["noembed"]> The HTML <noembed> element: fallback content for embed (deprecated).
noframes noframes: ElementProps<HTMLElementDeprecatedTagNameMap["noframes"]> The HTML <noframes> element: content for browsers without frames (deprecated).
param param: VoidElementProps<HTMLElementDeprecatedTagNameMap["param"], ParamAttributes> The HTML <param> element: a parameter of an object (deprecated).
plaintext plaintext: ElementProps<HTMLElementDeprecatedTagNameMap["plaintext"]> The HTML <plaintext> element: text shown as plain text to the end of the document (deprecated: use pre).
rb rb: ElementProps<HTMLElementDeprecatedTagNameMap["rb"]> The HTML <rb> element: the base text of a ruby annotation (deprecated).
rtc rtc: ElementProps<HTMLElementDeprecatedTagNameMap["rtc"]> The HTML <rtc> element: a container of ruby text (deprecated).
spacer spacer: VoidElementProps<HTMLElementDeprecatedTagNameMap["spacer"]> The HTML <spacer> element: blank space (deprecated: use CSS).
strike strike: ElementProps<HTMLElementDeprecatedTagNameMap["strike"]> The HTML <strike> element: struck-through text (deprecated: use s or del).
tt tt: ElementProps<HTMLElementDeprecatedTagNameMap["tt"]> The HTML <tt> element: teletype text (deprecated: use code or CSS).
xmp xmp: ElementProps<HTMLElementDeprecatedTagNameMap["xmp"]> The HTML <xmp> element: example markup shown as written (deprecated: use pre).