view.dom.primitives¶
Functions
|
Defines a hyperlink that links to another page or location within the same page |
|
Defines an abbreviation or acronym, optionally with its expansion |
|
Defines contact information for the author/owner of a document or article |
|
Defines a clickable area inside an image map |
|
Defines independent, self-contained content that could be distributed independently |
|
Defines content aside from the main content (like a sidebar) |
|
Embeds sound content in documents |
|
Defines bold text without extra importance (use <strong> for importance) |
|
Specifies the base URL and/or target for all relative URLs in a document |
|
Isolates text that might be formatted in a different direction from other text |
|
Overrides the current text direction |
|
Defines a section that is quoted from another source |
|
Defines the document's body, containing all visible contents |
|
Inserts a single line break |
|
Defines a clickable button |
|
Provides a container for graphics that can be drawn using JavaScript |
|
Defines a table caption |
|
Defines the title of a creative work (book, movie, song, etc.) |
|
Defines a piece of computer code |
|
Specifies column properties for each column within a <colgroup> element |
|
Specifies a group of one or more columns in a table for formatting |
|
Links content with a machine-readable translation |
|
Contains a set of <option> elements that represent predefined options for input controls |
|
Defines a description/value of a term in a description list |
|
Defines text that has been deleted from a document |
|
Defines additional details that the user can view or hide |
|
Represents the defining instance of a term |
|
Defines a dialog box or window |
|
Defines a generic container for flow content with no semantic meaning |
|
Defines a description list |
|
Defines a term/name in a description list |
|
Defines emphasized text (typically displayed in italic) |
|
Embeds external content at the specified point in the document |
|
Groups related elements in a form and draws a box around them |
|
Defines a caption for a <figure> element |
|
Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc. |
|
Defines a footer for a document or section |
|
Creates an HTML form for user input |
|
Defines the most important heading (level 1) |
|
Defines a level 2 heading |
|
Defines a level 3 heading |
|
Defines a level 4 heading |
|
Defines a level 5 heading |
|
Defines the least important heading (level 6) |
|
Contains metadata and information about the document |
|
Defines a header for a document or section, typically containing introductory content |
|
Groups a set of h1-h6 elements when a heading has multiple levels |
|
Defines a thematic break or horizontal rule in content |
|
Represents the root element of an HTML document |
|
Defines italic text, typically used for technical terms, foreign phrases, etc. |
|
Embeds another HTML page within the current page |
|
Embeds an image in the document |
|
Creates an interactive control for user input within a form |
|
Defines text that has been inserted into a document |
|
Defines keyboard input |
|
Defines a label for an input element |
|
Defines a caption for a fieldset element |
|
Defines a list item |
|
Defines the relationship between the current document and an external resource |
|
Specifies the main content of the document |
|
Defines a client-side image map |
|
Defines marked/highlighted text |
|
Provides metadata about the HTML document |
|
Defines a scalar measurement within a known range (a gauge) |
|
Defines a section of navigation links |
|
Defines alternate content for users that have disabled scripts or don't support scripting |
|
Embeds an external resource such as an image, video, audio, PDF, or Flash |
|
Defines an ordered (numbered) list |
|
Groups related options in a drop-down list |
|
Defines an option in a drop-down list |
|
Represents the result of a calculation or user action |
|
Defines a paragraph |
|
Defines parameters for an object element |
|
Contains multiple image sources, allowing for different images in different scenarios |
|
Defines preformatted text that preserves spaces and line breaks |
|
Represents the progress of a task |
|
Defines a short inline quotation |
|
Defines what to show in browsers that do not support ruby annotations |
|
Defines an explanation/pronunciation of characters (for East Asian typography) |
|
Defines a ruby annotation (for East Asian typography) |
|
Defines text that is no longer correct or relevant (strikethrough) |
|
Defines sample output from a computer program |
|
Embeds or references executable code, typically JavaScript |
|
Defines a thematic grouping of content, typically with a heading |
|
Creates a drop-down list |
|
Defines a slot in a web component that can be filled with markup |
|
Defines smaller text (like copyright and other side-comments) |
|
Defines an inline container with no semantic meaning, used for styling or scripting |
|
Defines important text with strong importance (typically bold) |
|
Contains style information (CSS) for a document |
|
Defines subscript text |
|
Defines a visible heading for a details element |
|
Defines superscript text |
|
Defines a table |
|
Groups the body content in a table |
|
Defines a standard data cell in a table |
|
Defines a container for content that should not be rendered when the page loads |
|
Defines a multi-line text input control |
|
Groups the footer content in a table |
|
Defines a header cell in a table |
|
Groups the header content in a table |
|
Defines a specific time (or datetime) |
|
Defines the title of the document (shown in browser's title bar or tab) |
|
Defines a row in a table |
|
Defines text tracks for media elements (video and audio) |
|
Defines text with an unarticulated, non-textual annotation (typically underlined) |
|
Defines an unordered (bulleted) list |
|
Defines a variable in programming or mathematical contexts |
|
Embeds video content in the document |
|
Defines a possible line-break opportunity in text |
Classes
Sentinel class to mark a default value in an HTML node as "implicit", and thus does not need to be included in the rendered output. |
- class GlobalAttributes¶
Bases:
TypedDict- cls: NotRequired[str]¶
Specifies one or more class names for an element (refers to a class in a style sheet)
- contenteditable: NotRequired[Literal['true', 'false', 'plaintext-only']]¶
Specifies whether the content of an element is editable or not
- dir: NotRequired[Literal['ltr', 'rtl', 'auto']]¶
Specifies the text direction for the content in an element
- draggable: NotRequired[Literal['true', 'false', 'auto']]¶
Specifies whether an element is draggable or not
Specifies that an element is not yet, or is no longer, relevant
- oncanplaythrough: NotRequired[str]¶
Script to be run when a file can be played all the way through without pausing
Script to be run when a context menu is triggered
- ondragenter: NotRequired[str]¶
Script to be run when an element has been dragged to a valid drop target
- ondragover: NotRequired[str]¶
Script to be run when an element is being dragged over a valid drop target
- onprogress: NotRequired[str]¶
Script to be run when the browser is in the process of getting the media data
- class ImplicitDefault¶
Bases:
strSentinel class to mark a default value in an HTML node as “implicit”, and thus does not need to be included in the rendered output.
- a(child_text: str = '', /, *, data: dict[str, str] | None = None, href: str | None = None, target: Literal['_blank', '_self', '_parent', '_top'] | ImplicitDefault = '_self', download: str | None = None, rel: str | None = None, hreflang: str | None = None, type: str | None = None, referrerpolicy: Literal['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'] | None = None, ping: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a hyperlink that links to another page or location within the same page
- abbr(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines an abbreviation or acronym, optionally with its expansion
- address(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines contact information for the author/owner of a document or article
- area(child_text: str = '', /, *, data: dict[str, str] | None = None, alt: str | None, coords: str | None = None, shape: Literal['default', 'rect', 'circle', 'poly'] | ImplicitDefault = 'rect', href: str | None = None, target: Literal['_blank', '_self', '_parent', '_top'] | None = None, download: str | None = None, rel: str | None = None, referrerpolicy: Literal['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'] | None = None, ping: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a clickable area inside an image map
- article(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines independent, self-contained content that could be distributed independently
- aside(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines content aside from the main content (like a sidebar)
- audio(child_text: str = '', /, *, data: dict[str, str] | None = None, src: str | None = None, controls: bool = False, autoplay: bool = False, loop: bool = False, muted: bool = False, preload: Literal['auto', 'metadata', 'none'] | ImplicitDefault = 'auto', crossorigin: Literal['anonymous', 'use-credentials'] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Embeds sound content in documents
- b(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines bold text without extra importance (use <strong> for importance)
- base(*, data: dict[str, str] | None = None, href: str | None = None, target: Literal['_blank', '_self', '_parent', '_top'] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Specifies the base URL and/or target for all relative URLs in a document
- bdi(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Isolates text that might be formatted in a different direction from other text
- bdo(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Overrides the current text direction
- blockquote(child_text: str = '', /, *, data: dict[str, str] | None = None, cite: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a section that is quoted from another source
- body(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines the document’s body, containing all visible contents
- br(*, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Inserts a single line break
- button(child_text: str = '', /, *, data: dict[str, str] | None = None, type: Literal['button', 'submit', 'reset'] | ImplicitDefault = 'submit', name: str | None = None, value: str | None = None, disabled: bool = False, form: str | None = None, formaction: str | None = None, formenctype: Literal['application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'] | None = None, formmethod: Literal['get', 'post'] | None = None, formnovalidate: bool = False, formtarget: Literal['_blank', '_self', '_parent', '_top'] | None = None, autofocus: bool = False, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a clickable button
- canvas(child_text: str = '', /, *, data: dict[str, str] | None = None, width: int | ImplicitDefault = '300', height: int | ImplicitDefault = '150', **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Provides a container for graphics that can be drawn using JavaScript
- caption(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a table caption
- cite(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines the title of a creative work (book, movie, song, etc.)
- code(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a piece of computer code
- col(*, data: dict[str, str] | None = None, span: int | ImplicitDefault = '1', **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Specifies column properties for each column within a <colgroup> element
- colgroup(child_text: str = '', /, *, data: dict[str, str] | None = None, span: int | ImplicitDefault = '1', **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Specifies a group of one or more columns in a table for formatting
- data(child_text: str = '', /, *, data: dict[str, str] | None = None, value: str | None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Links content with a machine-readable translation
- datalist(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Contains a set of <option> elements that represent predefined options for input controls
- dd(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a description/value of a term in a description list
- del_(child_text: str = '', /, *, data: dict[str, str] | None = None, cite: str | None = None, datetime: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines text that has been deleted from a document
- details(child_text: str = '', /, *, data: dict[str, str] | None = None, open: bool = False, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines additional details that the user can view or hide
- dfn(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Represents the defining instance of a term
- dialog(child_text: str = '', /, *, data: dict[str, str] | None = None, open: bool = False, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a dialog box or window
- div(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a generic container for flow content with no semantic meaning
- dl(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a description list
- dt(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a term/name in a description list
- em(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines emphasized text (typically displayed in italic)
- embed(*, data: dict[str, str] | None = None, src: str | None, type: str | None = None, width: int | None = None, height: int | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Embeds external content at the specified point in the document
- fieldset(child_text: str = '', /, *, data: dict[str, str] | None = None, disabled: bool = False, form: str | None = None, name: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Groups related elements in a form and draws a box around them
- figcaption(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a caption for a <figure> element
- figure(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.
Defines a footer for a document or section
- form(child_text: str = '', /, *, data: dict[str, str] | None = None, action: str | None = None, method: Literal['get', 'post', 'dialog'] | ImplicitDefault = 'get', enctype: Literal['application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'] | ImplicitDefault = 'application/x-www-form-urlencoded', name: str | None = None, target: Literal['_blank', '_self', '_parent', '_top'] | None = None, autocomplete: Literal['on', 'off'] | ImplicitDefault = 'on', novalidate: bool = False, accept_charset: str | None = None, rel: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Creates an HTML form for user input
- h1(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines the most important heading (level 1)
- h2(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a level 2 heading
- h3(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a level 3 heading
- h4(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a level 4 heading
- h5(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a level 5 heading
- h6(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines the least important heading (level 6)
- head(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Contains metadata and information about the document
- header(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a header for a document or section, typically containing introductory content
- hgroup(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Groups a set of h1-h6 elements when a heading has multiple levels
- hr(*, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a thematic break or horizontal rule in content
- html(child_text: str = '', /, *, data: dict[str, str] | None = None, xmlns: str = 'http://www.w3.org/1999/xhtml', **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Represents the root element of an HTML document
- i(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines italic text, typically used for technical terms, foreign phrases, etc.
- iframe(child_text: str = '', /, *, data: dict[str, str] | None = None, src: str | None = None, srcdoc: str | None = None, name: str | None = None, sandbox: str | None = None, allow: str | None = None, allowfullscreen: bool = False, width: int | None = None, height: int | None = None, referrerpolicy: Literal['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'] | None = None, loading: Literal['eager', 'lazy'] | ImplicitDefault = 'eager', **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Embeds another HTML page within the current page
- img(*, data: dict[str, str] | None = None, src: str | None, alt: str | None, width: int | None = None, height: int | None = None, srcset: str | None = None, sizes: str | None = None, crossorigin: Literal['anonymous', 'use-credentials'] | None = None, usemap: str | None = None, ismap: bool = False, loading: Literal['eager', 'lazy'] | ImplicitDefault = 'eager', decoding: Literal['sync', 'async', 'auto'] | ImplicitDefault = 'auto', referrerpolicy: Literal['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Embeds an image in the document
- input(*, data: dict[str, str] | None = None, type: Literal['button', 'checkbox', 'color', 'date', 'datetime-local', 'email', 'file', 'hidden', 'image', 'month', 'number', 'password', 'radio', 'range', 'reset', 'search', 'submit', 'tel', 'text', 'time', 'url', 'week'] | ImplicitDefault = 'text', name: str | None = None, value: str | None = None, placeholder: str | None = None, required: bool = False, readonly: bool = False, disabled: bool = False, checked: bool = False, autocomplete: Literal['on', 'off', 'name', 'email', 'username', 'new-password', 'current-password', 'tel', 'url', 'street-address', 'postal-code', 'cc-number'] | None = None, autofocus: bool = False, min: str | None = None, max: str | None = None, step: str | None = None, minlength: int | None = None, maxlength: int | None = None, pattern: str | None = None, size: int | None = None, multiple: bool = False, accept: str | None = None, src: str | None = None, alt: str | None = None, width: int | None = None, height: int | None = None, list: str | None = None, form: str | None = None, formaction: str | None = None, formenctype: Literal['application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'] | None = None, formmethod: Literal['get', 'post'] | None = None, formnovalidate: bool = False, formtarget: Literal['_blank', '_self', '_parent', '_top'] | None = None, capture: Literal['user', 'environment'] | None = None, dirname: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Creates an interactive control for user input within a form
- ins(child_text: str = '', /, *, data: dict[str, str] | None = None, cite: str | None = None, datetime: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines text that has been inserted into a document
- kbd(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines keyboard input
- label(child_text: str = '', /, *, data: dict[str, str] | None = None, for_: str | None = None, form: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a label for an input element
- legend(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a caption for a fieldset element
- li(child_text: str = '', /, *, data: dict[str, str] | None = None, value: int | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a list item
- link(*, data: dict[str, str] | None = None, href: str | None, rel: str | None, type: str | None = None, media: str | None = None, hreflang: str | None = None, sizes: str | None = None, crossorigin: Literal['anonymous', 'use-credentials'] | None = None, referrerpolicy: Literal['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'] | None = None, integrity: str | None = None, as_: Literal['audio', 'document', 'embed', 'fetch', 'font', 'image', 'object', 'script', 'style', 'track', 'video', 'worker'] | None = None, disabled: bool = False, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines the relationship between the current document and an external resource
- main(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Specifies the main content of the document
- map(child_text: str = '', /, *, data: dict[str, str] | None = None, name: str | None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a client-side image map
- mark(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines marked/highlighted text
- meta(*, data: dict[str, str] | None = None, name: str | None = None, content: str | None = None, charset: str | None = None, http_equiv: Literal['content-security-policy', 'content-type', 'default-style', 'refresh'] | None = None, property: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Provides metadata about the HTML document
- meter(child_text: str = '', /, *, data: dict[str, str] | None = None, value: int | None, min: int = 0, max: int = 1, low: int | None = None, high: int | None = None, optimum: int | None = None, form: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a scalar measurement within a known range (a gauge)
Defines a section of navigation links
- noscript(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines alternate content for users that have disabled scripts or don’t support scripting
- object(child_text: str = '', /, *, data: dict[str, str] | None = None, data_: str | None = None, type: str | None = None, name: str | None = None, usemap: str | None = None, form: str | None = None, width: int | None = None, height: int | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Embeds an external resource such as an image, video, audio, PDF, or Flash
- ol(child_text: str = '', /, *, data: dict[str, str] | None = None, reversed: bool = False, start: int | None = None, type: Literal['1', 'A', 'a', 'I', 'i'] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines an ordered (numbered) list
- optgroup(child_text: str = '', /, *, data: dict[str, str] | None = None, label: str | None, disabled: bool = False, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Groups related options in a drop-down list
- option(child_text: str = '', /, *, data: dict[str, str] | None = None, value: str | None = None, label: str | None = None, selected: bool = False, disabled: bool = False, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines an option in a drop-down list
- output(child_text: str = '', /, *, data: dict[str, str] | None = None, for_: str | None = None, form: str | None = None, name: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Represents the result of a calculation or user action
- p(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a paragraph
- param(*, data: dict[str, str] | None = None, name: str | None, value: str | None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines parameters for an object element
- picture(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Contains multiple image sources, allowing for different images in different scenarios
- pre(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines preformatted text that preserves spaces and line breaks
- progress(child_text: str = '', /, *, data: dict[str, str] | None = None, value: int | None = None, max: int | ImplicitDefault = '1', **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Represents the progress of a task
- q(child_text: str = '', /, *, data: dict[str, str] | None = None, cite: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a short inline quotation
- rp(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines what to show in browsers that do not support ruby annotations
- rt(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines an explanation/pronunciation of characters (for East Asian typography)
- ruby(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a ruby annotation (for East Asian typography)
- s(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines text that is no longer correct or relevant (strikethrough)
- samp(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines sample output from a computer program
- script(child_text: str = '', /, *, data: dict[str, str] | None = None, src: str | None = None, type: str = 'text/javascript', async_: bool = False, defer: bool = False, crossorigin: Literal['anonymous', 'use-credentials'] | None = None, integrity: str | None = None, referrerpolicy: Literal['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'] | None = None, nomodule: bool = False, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Embeds or references executable code, typically JavaScript
- section(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a thematic grouping of content, typically with a heading
- select(child_text: str = '', /, *, data: dict[str, str] | None = None, name: str | None = None, multiple: bool = False, required: bool = False, disabled: bool = False, size: int | None = None, autofocus: bool = False, form: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Creates a drop-down list
- slot(child_text: str = '', /, *, data: dict[str, str] | None = None, name: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a slot in a web component that can be filled with markup
- small(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines smaller text (like copyright and other side-comments)
- span(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines an inline container with no semantic meaning, used for styling or scripting
- strong(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines important text with strong importance (typically bold)
- style(child_text: str = '', /, *, data: dict[str, str] | None = None, media: str | None = None, type: str = 'text/css', **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Contains style information (CSS) for a document
- sub(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines subscript text
- summary(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a visible heading for a details element
- sup(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines superscript text
- table(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a table
- tbody(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Groups the body content in a table
- td(child_text: str = '', /, *, data: dict[str, str] | None = None, colspan: int | ImplicitDefault = '1', rowspan: int | ImplicitDefault = '1', headers: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a standard data cell in a table
- template(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a container for content that should not be rendered when the page loads
- textarea(child_text: str = '', /, *, data: dict[str, str] | None = None, name: str | None = None, rows: int | None = None, cols: int | None = None, placeholder: str | None = None, required: bool = False, readonly: bool = False, disabled: bool = False, maxlength: int | None = None, minlength: int | None = None, wrap: Literal['hard', 'soft'] | ImplicitDefault = 'soft', autocomplete: Literal['on', 'off'] | None = None, autofocus: bool = False, form: str | None = None, dirname: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a multi-line text input control
- tfoot(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Groups the footer content in a table
- th(child_text: str = '', /, *, data: dict[str, str] | None = None, colspan: int | ImplicitDefault = '1', rowspan: int | ImplicitDefault = '1', headers: str | None = None, scope: Literal['col', 'row', 'colgroup', 'rowgroup'] | None = None, abbr: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a header cell in a table
- thead(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Groups the header content in a table
- time(child_text: str = '', /, *, data: dict[str, str] | None = None, datetime: str | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a specific time (or datetime)
- title(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines the title of the document (shown in browser’s title bar or tab)
- tr(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a row in a table
- track(*, data: dict[str, str] | None = None, kind: Literal['subtitles', 'captions', 'descriptions', 'chapters', 'metadata'] | ImplicitDefault = 'subtitles', src: str | None, srclang: str | None = None, label: str | None = None, default: bool = False, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines text tracks for media elements (video and audio)
- u(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines text with an unarticulated, non-textual annotation (typically underlined)
- ul(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines an unordered (bulleted) list
- var(child_text: str = '', /, *, data: dict[str, str] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Defines a variable in programming or mathematical contexts
- video(child_text: str = '', /, *, data: dict[str, str] | None = None, src: str | None = None, controls: bool = False, width: int | None = None, height: int | None = None, autoplay: bool = False, loop: bool = False, muted: bool = False, preload: Literal['auto', 'metadata', 'none'] | ImplicitDefault = 'auto', poster: str | None = None, playsinline: bool = False, crossorigin: Literal['anonymous', 'use-credentials'] | None = None, **global_attributes: Unpack[GlobalAttributes]) HTMLNode¶
Embeds video content in the document