/** * This module provides a list of all HTML tags. * @module */ /** * A list of all HTML tags. * * See https://html.spec.whatwg.org/dev/indices.html#elements-3 for more */ export const HTML_TAGS = [ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "picture", "portal", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "search", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", ] as const; /** Represents an HTML tag. */ export type HTMLTag = (typeof HTML_TAGS)[number]; /** * A list of all void HTML tags. * * See https://html.spec.whatwg.org/dev/indices.html#elements-3 for more */ export const VOID_HTML_TAGS = [ "area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "source", "track", "wbr", ] as const; /** Represents a void HTML tag. */ export type VoidHTMLTag = (typeof VOID_HTML_TAGS)[number];