import { CSSProperties } from "./css.ts"; /** * All HTML elements */ export interface HTMLElements { /** * Custom element */ [key: string]: unknown; /** * If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/a) */ a?: A; /** * The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/abbr) */ abbr?: GlobalAttributes; /** * The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/address) */ address?: GlobalAttributes; /** * Provides a way to animate an attribute of an element over time. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/animate) */ animate?: Animate; /** * Provides a way to define how an element moves along a motion path. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/animateMotion) */ animateMotion?: AnimateMotion; /** * animates a transformation attribute on its target element, thereby allowing animations to control translation, scaling, rotation, and/or skewing. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/animateTransform) */ animateTransform?: AnimateTransform; /** * The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/area) */ area?: Area; /** * The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. Each article should be identified, typically by including a heading (h1–h6 element) as a child of the article element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/article) */ article?: GlobalAttributes; /** * The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/aside) */ aside?: GlobalAttributes; /** * An audio element represents a sound or audio stream. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/audio) */ audio?: Audio; /** * The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/b) */ b?: GlobalAttributes; /** * The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/base) */ base?: Base; /** * The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI] * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/bdi) */ bdi?: GlobalAttributes; /** * The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI] * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/bdo) */ bdo?: GlobalAttributes; /** * The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/blockquote) */ blockquote?: Blockquote; /** * The body element represents the content of the document. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/body) */ body?: Body; /** * The br element represents a line break. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/br) */ br?: Br; /** * The button element represents a button labeled by its contents. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/button) */ button?: Button; /** * The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/canvas) */ canvas?: Canvas; /** * The caption element represents the title of the table that is its parent, if it has a parent and that is a table element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/caption) */ caption?: Caption; /** * Create circles based on a center point and a radius. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/circle) */ circle?: Circle; /** * The cite element represents a reference to a creative work. It must include the title of the work or the name of the author(person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/cite) */ cite?: GlobalAttributes; /** * Defines a clipping path. A clipping path is used/referenced using the clip-path property. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/clipPath) */ clipPath?: ClipPath; /** * The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/code) */ code?: GlobalAttributes; /** * If a col element has a parent and that is a colgroup element that itself has a parent that is a table element, then the col element represents one or more columns in the column group represented by that colgroup. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/col) */ col?: Col; /** * The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/colgroup) */ colgroup?: Colgroup; /** * The data element links a given piece of content with a machine-readable translation. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/data) */ data?: Data; /** * The datalist element represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/datalist) */ datalist?: GlobalAttributes; /** * The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element). * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/dd) */ dd?: Dd; /** * Is used to store graphical objects that will be used at a later time. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/defs) */ defs?: Defs; /** * The del element represents a removal from the document. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/del) */ del?: Del; /** * Each container element or graphics element in an SVG drawing can supply a description string using the element where the description is text-only. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/desc) */ desc?: GlobalAttributes; /** * The details element represents a disclosure widget from which the user can obtain additional information or controls. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/details) */ details?: Details; /** * The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/dfn) */ dfn?: GlobalAttributes; /** * The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/dialog) */ dialog?: Dialog; /** * allows authors to specify the time at which particular elements are to be discarded, thereby reducing the resources required by an SVG user agent. This is particularly useful to help SVG viewers conserve memory while displaying long-running documents. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/discard) */ discard?: Discard; /** * The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/div) */ div?: GlobalAttributes; /** * The dl element represents an association list consisting of zero or more name-value groups (a description list). A name-value group consists of one or more names (dt elements) followed by one or more values (dd elements), ignoring any nodes other than dt and dd elements. Within a single dl element, there should not be more than one dt element for each name. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/dl) */ dl?: GlobalAttributes; /** * The dt element represents the term, or name, part of a term-description group in a description list (dl element). * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/dt) */ dt?: GlobalAttributes; /** * The ellipse element is an SVG basic shape, used to create ellipses based on a center coordinate, and both their x and y radius. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/ellipse) */ ellipse?: Ellipse; /** * The em element represents stress emphasis of its contents. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/em) */ em?: GlobalAttributes; /** * The embed element provides an integration point for an external (typically non-HTML) application or interactive content. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/embed) */ embed?: Embed; /** * The SVG filter primitive composes two objects together ruled by a certain blending mode. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feBlend) */ feBlend?: FeBlend; /** * The SVG filter element changes colors based on a transformation matrix. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feColorMatrix) */ feColorMatrix?: FeColorMatrix; /** * Th SVG filter primitive performs color-component-wise remapping of data for each pixel. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feComponentTransfer) */ feComponentTransfer?: FeComponentTransfer; /** * This filter primitive performs the combination of two input images pixel-wise in image space using one of the Porter-Duff compositing operations: over, in, atop, out, xor and lighter. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feComposite) */ feComposite?: FeComposite; /** * The SVG filter primitive applies a matrix convolution filter effect. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feConvolveMatrix) */ feConvolveMatrix?: FeConvolveMatrix; /** * The SVG filter primitive lights an image using the alpha channel as a bump map. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feDiffuseLighting) */ feDiffuseLighting?: FeDiffuseLighting; /** * The SVG filter primitive uses the pixel values from the image from in2 to spatially displace the image from in. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feDisplacementMap) */ feDisplacementMap?: FeDisplacementMap; /** * The filter primitive defines a distant light source that can be used within a lighting filter primitive: or . * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feDistantLight) */ feDistantLight?: FeDistantLight; /** * The filter primitive creates a drop shadow of the input image. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feDropShadow) */ feDropShadow?: FeDropShadow; /** * The SVG filter primitive fills the filter subregion with the color and opacity defined by flood-color and flood-opacity. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feFlood) */ feFlood?: FeFlood; /** * The SVG filter primitive defines the transfer function for the alpha component of the input graphic of its parent element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feFuncA) */ feFuncA?: FeFuncA; /** * The SVG filter primitive defines the transfer function for the blue component of the input graphic of its parent element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feFuncB) */ feFuncB?: FeFuncB; /** * The SVG filter primitive defines the transfer function for the green component of the input graphic of its parent element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feFuncG) */ feFuncG?: FeFuncG; /** * The SVG filter primitive defines the transfer function for the red component of the input graphic of its parent element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feFuncR) */ feFuncR?: FeFuncR; /** * The SVG filter primitive blurs the input image by the amount specified in stdDeviation, which defines the bell-curve. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feGaussianBlur) */ feGaussianBlur?: FeGaussianBlur; /** * The SVG filter primitive fetches image data from an external source and provides the pixel data as output (meaning if the external source is an SVG image, it is rasterized.) * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feImage) */ feImage?: FeImage; /** * The SVG element allows filter effects to be applied concurrently instead of sequentially. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feMerge) */ feMerge?: FeMerge; /** * The feMergeNode takes the result of another filter to be processed by its parent . * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feMergeNode) */ feMergeNode?: FeMergeNode; /** * The SVG filter primitive is used to erode or dilate the input image. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feMorphology) */ feMorphology?: FeMorphology; /** * The fencedframe element represents a nested browsing context, embedding another HTML page into the current one. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/fencedframe) */ fencedframe?: Fencedframe; /** * The SVG filter primitive allows to offset the input image. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feOffset) */ feOffset?: FeOffset; /** * The SVG filter primitive allows to create a point light effect. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/fePointLight) */ fePointLight?: FePointLight; /** * The SVG filter primitive lights a source graphic using the alpha channel as a bump map. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feSpecularLighting) */ feSpecularLighting?: FeSpecularLighting; /** * The SVG filter primitive allows to create a spotlight effect. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feSpotLight) */ feSpotLight?: FeSpotLight; /** * The SVG filter primitive allows to fill a target rectangle with a repeated, tiled pattern of an input image. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feTile) */ feTile?: FeTile; /** * The SVG filter primitive creates an image using the Perlin turbulence function. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/feTurbulence) */ feTurbulence?: FeTurbulence; /** * The fieldset element represents a set of form controls optionally grouped under a common name. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/fieldset) */ fieldset?: Fieldset; /** * The figcaption element represents a caption or legend for the rest of the contents of the figcaption element's parent figure element, if any. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/figcaption) */ figcaption?: GlobalAttributes; /** * The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/figure) */ figure?: GlobalAttributes; /** * The SVG element serves as container for atomic filter operations. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/filter) */ filter?: Filter; /** * The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/footer) */ footer?: GlobalAttributes; /** * The SVG element allows for inclusion of a foreign XML namespace which has its graphical content drawn by a different user agent. The included foreign graphical content is subject to SVG transformations and compositing. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/foreignObject) */ foreignObject?: ForeignObject; /** * The form element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/form) */ form?: Form; /** * The SVG element is a container used to group other SVG elements. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/g) */ g?: G; /** * The h1 element represents a section heading. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements) */ h1?: GlobalAttributes; /** * The h2 element represents a section heading. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements) */ h2?: GlobalAttributes; /** * The h3 element represents a section heading. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements) */ h3?: GlobalAttributes; /** * The h4 element represents a section heading. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements) */ h4?: GlobalAttributes; /** * The h5 element represents a section heading. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements) */ h5?: GlobalAttributes; /** * The h6 element represents a section heading. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements) */ h6?: GlobalAttributes; /** * The head element represents a collection of metadata for the Document. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/head) */ head?: Head; /** * The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids. When the nearest ancestor sectioning content or sectioning root element is the body element, then it applies to the whole page. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/header) */ header?: GlobalAttributes; /** * The hgroup element represents a heading and related content. It groups a single h1–h6 element with one or more p. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/hgroup) */ hgroup?: GlobalAttributes; /** * The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/hr) */ hr?: Hr; /** * The html element represents the root of an HTML document. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/html) */ html?: Html; /** * The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/i) */ i?: GlobalAttributes; /** * The iframe element represents a nested browsing context. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/iframe) */ iframe?: Iframe; /** * The SVG element allows a raster image to be included in an SVG document. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/image) */ image?: Image; /** * An img element represents an image. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/img) */ img?: Img; /** * The input element represents a typed data field, usually with a form control to allow the user to edit the data. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/input) */ input?: Input; /** * The ins element represents an addition to the document. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/ins) */ ins?: Ins; /** * The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands). * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/kbd) */ kbd?: GlobalAttributes; /** * The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using the for attribute, or by putting the form control inside the label element itself. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/label) */ label?: Label; /** * The legend element represents a caption for the rest of the contents of the legend element's parent fieldset element, if any. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/legend) */ legend?: GlobalAttributes; /** * The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/li) */ li?: Li; /** * The element is an SVG basic shape used to create a line connecting two points. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/line) */ line?: Line; /** * The SVG element lets authors define linear gradients to fill or stroke graphical elements. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/linearGradient) */ linearGradient?: LinearGradient; /** * The link element allows authors to link their document to other resources. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/link) */ link?: Link; /** * The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/main) */ main?: GlobalAttributes; /** * The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents its children. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/map) */ map?: Map; /** * The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader's attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user's current activity. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/mark) */ mark?: GlobalAttributes; /** * The element defines the graphics that is to be used for drawing arrowheads or polymarkers on a given , , or element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/marker) */ marker?: Marker; /** * The element defines an alpha mask for compositing the current object into the background. A mask is used/referenced using the mask property. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/mask) */ mask?: Mask; /** * The menu element represents an unordered list of interactive items. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/menu) */ menu?: GlobalAttributes; /** * The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/meta) */ meta?: Meta; /** * The SVG element allows to add metadata to SVG content. Metadata is structured information about data. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/metadata) */ metadata?: GlobalAttributes; /** * The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/meter) */ meter?: Meter; /** * The sub-element for the element provides the ability to reference an external element as the definition of a motion path. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/mpath) */ mpath?: Mpath; /** * The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/nav) */ nav?: GlobalAttributes; /** * The noscript element represents nothing if scripting is enabled, and represents its children if scripting is disabled. It is used to present different markup to user agents that support scripting and those that don't support scripting, by affecting how the document is parsed. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/noscript) */ noscript?: GlobalAttributes; /** * The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/object) */ object?: Object; /** * The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/ol) */ ol?: Ol; /** * The optgroup element represents a group of option elements with a common label. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/optgroup) */ optgroup?: Optgroup; /** * The option element represents an option in a select element or as part of a list of suggestions in a datalist element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/option) */ option?: Option; /** * The output element represents the result of a calculation performed by the application, or the result of a user action. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/output) */ output?: Output; /** * The p element represents a paragraph. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/p) */ p?: GlobalAttributes; /** * The param element defines parameters for plugins invoked by object elements. It does not represent anything on its own. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/param) */ param?: Param; /** * The SVG element is the generic element to define a shape. All the basic shapes can be created with a path element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/path) */ path?: Path; /** * The element defines a graphics object which can be redrawn at repeated x and y-coordinate intervals ("tiled") to cover an area. The is referenced by the fill and/or stroke attributes on other graphics elements to fill or stroke those elements with the referenced pattern. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/pattern) */ pattern?: Pattern; /** * The picture element is a container which provides multiple sources to its contained img element to allow authors to declaratively control or give hints to the user agent about which image resource to use, based on the screen pixel density, viewport size, image format, and other factors. It represents its children. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/picture) */ picture?: GlobalAttributes; /** * The element defines a closed shape consisting of a set of connected straight line segments. The last point is connected to the first point. For open shapes see the element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/polygon) */ polygon?: Polygon; /** * The SVG element is an SVG basic shape that creates straight lines connecting several points. Typically a polyline is used to create open shapes as the last point doesn't have to be connected to the first point. For closed shapes see the element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/polyline) */ polyline?: Polyline; /** * The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/pre) */ pre?: Pre; /** * The progress element represents the completion progress of a task. The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/progress) */ progress?: Progress; /** * The q element represents some phrasing content quoted from another source. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/q) */ q?: Q; /** * The SVG element lets authors define radial gradients to fill or stroke graphical elements. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/radialGradient) */ radialGradient?: RadialGradient; /** * The rb element marks the base text component of a ruby annotation. When it is the child of a ruby element, it doesn't represent anything itself, but its parent ruby element uses it as part of determining what it represents. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/rb) */ rb?: GlobalAttributes; /** * The rect element is an SVG basic shape, used to create rectangles based on the position of a corner and their width and height. It may also be used to create rectangles with rounded corners. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/rect) */ rect?: Rect; /** * The rp element is used to provide fallback text to be shown by user agents that don't support ruby annotations. One widespread convention is to provide parentheses around the ruby text component of a ruby annotation. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/rp) */ rp?: GlobalAttributes; /** * The rt element marks the ruby text component of a ruby annotation. When it is the child of a ruby element or of an rtc element that is itself the child of a ruby element, it doesn't represent anything itself, but its ancestor ruby element uses it as part of determining what it represents. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/rt) */ rt?: GlobalAttributes; /** * The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana. Ruby text can appear on either side, and sometimes both sides, of the base text, and it is possible to control its position using CSS. A more complete introduction to ruby can be found in the Use Cases & Exploratory Approaches for Ruby Markup document as well as in CSS Ruby Module Level 1. [RUBY-UC] [CSSRUBY] * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/ruby) */ ruby?: GlobalAttributes; /** * The s element represents contents that are no longer accurate or no longer relevant. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/s) */ s?: GlobalAttributes; /** * The samp element represents sample or quoted output from another program or computing system. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/samp) */ samp?: GlobalAttributes; /** * The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/script) */ script?: Script; /** * The search element represents the parts of the document or application with form controls or other content related to performing a search or filtering operation. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/search) */ search?: GlobalAttributes; /** * The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading ( h1- h6 element) as a child of the section element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/section) */ section?: GlobalAttributes; /** * The select element represents a control for selecting amongst a set of options. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/select) */ select?: Select; /** * The selectedcontent element can be used to display the content of the currently selected option element inside of a closed select element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/selectedcontent) */ selectedcontent?: GlobalAttributes; /** * The element provides a simple means of just setting the value of an attribute for a specified duration. It supports all attribute types, including those that cannot reasonably be interpolated, such as string and boolean values. The element is non-additive. The additive and accumulate attributes are not allowed, and will be ignored if specified. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/set) */ set?: Set; /** * The slot element is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/slot) */ slot?: Slot; /** * The small element represents side comments such as small print. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/small) */ small?: GlobalAttributes; /** * The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/source) */ source?: Source; /** * The span element doesn't mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/span) */ span?: GlobalAttributes; /** * The SVG element defines the ramp of colors to use on a gradient, which is a child element to either the or the element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/stop) */ stop?: Stop; /** * The strong element represents strong importance, seriousness, or urgency for its contents. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/strong) */ strong?: GlobalAttributes; /** * The style element allows authors to embed style information in their documents. The style element is one of several inputs to the styling processing model. The element does not represent content for the user. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/style) */ style?: Style; /** * The sub element represents a subscript. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/sub) */ sub?: GlobalAttributes; /** * The summary element represents a summary, caption, or legend for the rest of the contents of the summary element's parent details element, if any. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/summary) */ summary?: GlobalAttributes; /** * The sup element represents a superscript. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/sup) */ sup?: GlobalAttributes; /** * The svg element can be used to embed an SVG fragment inside the current document (for example, an HTML document). This SVG fragment has its own viewport and coordinate system. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/svg) */ svg?: Svg; /** * The SVG element evaluates the requiredFeatures, requiredExtensions and systemLanguage attributes on its direct child elements in order, and then processes and renders the first child for which these attributes evaluate to true. All others will be bypassed and therefore not rendered. If the child element is a container element such as a , then the entire subtree is either processed/rendered or bypassed/not rendered. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/switch) */ switch?: Switch; /** * The element is used to define graphical template objects which can be instantiated by a element. The use of symbol elements for graphics that are used multiple times in the same document adds structure and semantics. Documents that are rich in structure may be rendered graphically, as speech, or as Braille, and thus promote accessibility. Note that a symbol element itself is not rendered. Only instances of a symbol element (i.e., a reference to a symbol by a element) are rendered. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/symbol) */ symbol?: Symbol; /** * The table element represents data with more than one dimension, in the form of a table. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/table) */ table?: Table; /** * The tbody element represents a block of rows that consist of a body of data for the parent table element, if the tbody element has a parent and it is a table. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/tbody) */ tbody?: Tbody; /** * The td element represents a data cell in a table. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/td) */ td?: Td; /** * The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/template) */ template?: GlobalAttributes; /** * The SVG element defines a graphics element consisting of text. It's possible to apply a gradient, pattern, clipping path, mask, or filter to , just like any other SVG graphics element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/text) */ text?: Text; /** * The textarea element represents a multiline plain text edit control for the element's raw value. The contents of the control represent the control's default value. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/textarea) */ textarea?: Textarea; /** * In addition to text drawn in a straight line, SVG also includes the ability to place text along the shape of a element. To specify that a block of text is to be rendered along the shape of a , include the given text within a element which includes an href attribute with a reference to a element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/textPath) */ textPath?: TextPath; /** * The tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/tfoot) */ tfoot?: Tfoot; /** * The th element represents a header cell in a table. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/th) */ th?: Th; /** * The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/thead) */ thead?: Thead; /** * The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/time) */ time?: Time; /** * The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/title) */ title?: GlobalAttributes; /** * The tr element represents a row of cells in a table. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/tr) */ tr?: Tr; /** * The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/track) */ track?: Track; /** * Defines a subtext within a element or another element. It allows for adjustment of the style and/or position of that subtext as needed. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/tspan) */ tspan?: Tspan; /** * The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/u) */ u?: GlobalAttributes; /** * The ul element represents a list of items, where the order of the items is not important — that is, where changing the order would not materially change the meaning of the document. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/ul) */ ul?: Ul; /** * The element takes nodes from within the SVG document, and duplicates them somewhere else. The effect is the same as if the nodes were deeply cloned into a non-exposed DOM, and then pasted where the use element is, much like cloned template elements in HTML5. Since the cloned nodes are not exposed, care must be taken when using CSS to style a use element and its hidden descendants. CSS attributes are not guaranteed to be inherited by the hidden, cloned DOM unless you explicitly request it using CSS inheritance. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/use) */ use?: Use; /** * The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/var) */ var?: GlobalAttributes; /** * A video element is used for playing videos or movies, and audio files with captions. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/video) */ video?: Video; /** * A view is a defined way to view the image, like a zoom level or a detail view. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/SVG/Reference/Element/view) */ view?: View; /** * The wbr element represents a line break opportunity. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/wbr) */ wbr?: GlobalAttributes; } /** * Global attributes are attributes common to all HTML elements; they can be used on all elements, though they may have no effect on some elements. */ interface GlobalAttributes { /** * Custom attribute */ // deno-lint-ignore no-explicit-any [key: string]: any; /** * Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/accesskey) */ accesskey?: string; /** * Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant) */ "aria-activedescendant"?: string; /** * Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic) */ "aria-atomic"?: "true" | "false"; /** * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete) */ "aria-autocomplete"?: "inline" | "list" | "both" | "none"; /** * Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-busy) */ "aria-busy"?: "true" | "false"; /** * Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) */ "aria-checked"?: "true" | "false" | "mixed" | "undefined"; /** * Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) */ "aria-colcount"?: string; /** * Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) */ "aria-colindex"?: string; /** * Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan) */ "aria-colspan"?: string; /** * Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-controls) */ "aria-controls"?: string; /** * Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-current) */ "aria-current"?: | "page" | "step" | "location" | "date" | "time" | "true" | "false"; /** * Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby) */ "aria-describedby"?: string; /** * Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby). */ "aria-details"?: string; /** * Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled) */ "aria-disabled"?: "true" | "false"; /** * \[Deprecated in ARIA 1.1\] Indicates what functions can be performed when a dragged object is released on the drop target. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect) */ "aria-dropeffect"?: "copy" | "move" | "link" | "execute" | "popup" | "none"; /** * Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage) */ "aria-errormessage"?: string; /** * Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-expanded) */ "aria-expanded"?: "true" | "false" | "undefined"; /** * Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-flowto) */ "aria-flowto"?: string; /** * \[Deprecated in ARIA 1.1\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed) */ "aria-grabbed"?: "true" | "false" | "undefined"; /** * Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup) */ "aria-haspopup"?: | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog"; /** * Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) */ "aria-hidden"?: "true" | "false"; /** * Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) */ "aria-invalid"?: "grammar" | "false" | "spelling" | "true"; /** * Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */ "aria-keyshortcuts"?: string; /** * Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-label) */ "aria-label"?: string; /** * Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby) */ "aria-labelledby"?: string; /** * Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-level) */ "aria-level"?: string; /** * Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-live) */ "aria-live"?: "off" | "polite" | "assertive"; /** * Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-modal) */ "aria-modal"?: "true" | "false"; /** * Indicates whether a text box accepts multiple lines of input or only a single line. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-multiline) */ "aria-multiline"?: "true" | "false"; /** * Indicates that the user may select more than one item from the current selectable descendants. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable) */ "aria-multiselectable"?: "true" | "false"; /** * Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-orientation) */ "aria-orientation"?: "vertical" | "horizontal" | "undefined"; /** * Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-owns) */ "aria-owns"?: string; /** * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder) */ "aria-placeholder"?: number | string; /** * Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset) */ "aria-posinset"?: string; /** * Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) */ "aria-pressed"?: "true" | "false" | "mixed" | "undefined"; /** * Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly) */ "aria-readonly"?: "true" | "false"; /** * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) */ "aria-relevant"?: | "additions" | "removals" | "text" | "all" | "additions text"; /** * Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-required) */ "aria-required"?: "true" | "false"; /** * Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription) */ "aria-roledescription"?: string; /** * Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) */ "aria-rowcount"?: number | string; /** * Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) */ "aria-rowindex"?: number | string; /** * Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan) */ "aria-rowspan"?: number | string; /** * Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-selected) */ "aria-selected"?: "true" | "false" | "undefined"; /** * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize) */ "aria-setsize"?: number | string; /** * Indicates if items in a table or grid are sorted in ascending or descending order. * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-sort) */ "aria-sort"?: "ascending" | "descending" | "none" | "other"; /** * Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax) */ "aria-valuemax"?: number | string; /** * Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin) */ "aria-valuemin"?: number | string; /** * Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) */ "aria-valuenow"?: number | string; /** * Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). * @see [WAI-ARIA Reference](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext) */ "aria-valuetext"?: string; /** * Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values: * * * `off` or `none`, no autocapitalization is applied (all letters default to lowercase) * * `on` or `sentences`, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase * * `words`, the first letter of each word defaults to a capital letter; all other letters default to lowercase * * `characters`, all letters should default to uppercase * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/autocapitalize) */ autocapitalize?: string; /** * Controls whether autocorrection of editable text is enabled for spelling and/or punctuation errors. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/autocorrect) */ autocorrect?: "on" | "off"; /** * Indicates that an element should be focused on page load, or when the [``](https://developer.mozilla.org/docs/Web/HTML/Element/dialog) that it is part of is displayed. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/autofocus) */ autofocus?: string; /** * A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the [class selectors](https://developer.mozilla.org/docs/Web/CSS/Class_selectors) or functions like the method [`Document.getElementsByClassName()`](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName "returns an array-like object of all child elements which have all of the given class names."). * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/class) */ class?: string; /** * An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values: * * * `true` or the _empty string_, which indicates that the element must be editable; * * `false`, which indicates that the element must not be editable. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/contenteditable) */ contenteditable?: string; /** * The `[**id**](#attr-id)` of a [``](https://developer.mozilla.org/docs/Web/HTML/Element/menu "The HTML element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.") to use as the contextual menu for this element. */ contextmenu?: string; /** * An enumerated attribute indicating the directionality of the element's text. It can have the following values: * * * `ltr`, which means _left to right_ and is to be used for languages that are written from the left to the right (like English); * * `rtl`, which means _right to left_ and is to be used for languages that are written from the right to the left (like Arabic); * * `auto`, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/dir) */ dir?: "ltr" | "rtl" | "auto"; /** * An enumerated attribute indicating whether the element can be dragged, using the [Drag and Drop API](https://developer.mozilla.org/docs/DragDrop/Drag_and_Drop). It can have the following values: * * * `true`, which indicates that the element may be dragged * * `false`, which indicates that the element may not be dragged. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/draggable) */ draggable?: "true" | "false"; /** * An enumerated attribute indicating what types of content can be dropped on an element, using the [Drag and Drop API](https://developer.mozilla.org/docs/DragDrop/Drag_and_Drop). It can have the following values: * * * `copy`, which indicates that dropping will create a copy of the element that was dragged * * `move`, which indicates that the element that was dragged will be moved to this new location. * * `link`, will create a link to the dragged data. */ dropzone?: string; /** * An enumerated attribute defining what action label (or icon) to present for the enter key on virtual keyboards. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/enterkeyhint) */ enterkeyhint?: | "enter" | "done" | "go" | "next" | "previous" | "search" | "send"; /** * Used to transitively export shadow parts from a nested shadow tree into a containing light tree. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/exportparts) */ exportparts?: string; /** * A Boolean attribute indicates that the element is not yet, or is no longer, _relevant_. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/hidden) */ hidden?: boolean; /** * Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS). * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/id) */ id?: string; /** * Indicates that the element and all of its flat tree descendants become _inert_. Modal ``s generated with [`showModal()`](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal) escape inertness, meaning that they don't inherit inertness from their ancestors, but can only be made inert by having the `inert` attribute explicitly set on themselves. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/inert) */ inert?: string; /** * Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on [``](https://developer.mozilla.org/docs/Web/HTML/Element/input "The HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") elements, but is usable on any element while in `[contenteditable](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-contenteditable)` mode. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/inputmode) */ inputmode?: string; /** * Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see [Using custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements) for more details). * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/is) */ is?: string; /** * The unique, global identifier of an item. */ itemid?: string; /** * Used to add properties to an item. Every HTML element may have an `itemprop` attribute specified, where an `itemprop` consists of a name and value pair. */ itemprop?: string; /** * Properties that are not descendants of an element with the `itemscope` attribute can be associated with the item using an `itemref`. It provides a list of element ids (not `itemid`s) with additional properties elsewhere in the document. */ itemref?: string; /** * `itemscope` (usually) works along with `[itemtype](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-itemtype)` to specify that the HTML contained in a block is about a particular item. `itemscope` creates the Item and defines the scope of the `itemtype` associated with it. `itemtype` is a valid URL of a vocabulary (such as [schema.org](https://schema.org/)) that describes the item and its properties context. */ itemscope?: boolean; /** * Specifies the URL of the vocabulary that will be used to define `itemprop`s (item properties) in the data structure. `[itemscope](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-itemscope)` is used to set the scope of where in the data structure the vocabulary set by `itemtype` will be active. */ itemtype?: string; /** * Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user. The attribute contains one “language tag” (made of hyphen-separated “language subtags”) in the format defined in [_Tags for Identifying Languages (BCP47)_](https://www.ietf.org/rfc/bcp/bcp47.txt). [**xml:lang**](#attr-xml:lang) has priority over it. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/lang) */ lang?: string; /** * Defines a cryptographic nonce ("number used once") which can be used by [Content Security Policy](https://developer.mozilla.org/docs/Web/HTTP/Guides/CSP) to determine whether or not a given fetch will be allowed to proceed for a given element. * @see [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/nonce) */ nonce?: string; /** * The loading of a resource has been aborted. */ onabort?: string; /** * An element has lost focus (does not bubble). */ onblur?: string; /** * The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content. */ oncanplay?: string; /** * The user agent can play the media up to its end without having to stop for further buffering of content. */ oncanplaythrough?: string; /** * The change event is fired for ,