Skip to content

Tags T-Z

Td

Td(
    *children,
    colspan=None,
    rowspan=None,
    headers=None,
    class_=None,
    id=None,
    style=None,
    **kwargs,
)

Bases: BaseTag

Defines a cell in a table

Parameters:

Name Type Description Default
children Renderable

Tags, strings, or other rendered content.

()
colspan str | None

Defines the number of columns a cell should span.

None
rowspan str | None

Defines the number of rows a cell should span.

None
headers str | None

list of string ids of the <th> elements that apply to the cell

None
class_ str | None

Substituted as the DOM class attribute.

None
id str | None

DOM ID attribute.

None
style str | None

Inline style attribute.

None
kwargs AttributeType

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
def __init__(
    self,
    *children: Renderable,
    colspan: str | None = None,
    rowspan: str | None = None,
    headers: str | None = None,
    class_: str | None = None,
    id: str | None = None,
    style: str | None = None,
    **kwargs: AttributeType,
) -> None:
    super().__init__(*children, **kwargs | locals_cleanup(locals()))

Template

Template(
    *children,
    shadowrootmode=None,
    shadowrootdelegatesfocus=None,
    shadowrootclonable=None,
    shadowrootserializable=None,
    class_=None,
    id=None,
    **kwargs,
)

Bases: BaseTag

Defines a container for content that should be hidden when the page loads

Parameters:

Name Type Description Default
children Renderable

Tags, strings, or other rendered content.

()
shadowrootmode str | None

Creates a shadow root for the parent element.

None
shadowrootdelegatesfocus str | None

Sets whether the shadow root created delegates focus.

None
shadowrootclonable str | None

Sets the value of the 'cloneable' property on the shadow root.

None
shadowrootserializable str | None

Sets the value of the 'serializable' property on the shadow root.

None
class_ str | None

Substituted as the DOM class attribute.

None
id str | None

DOM ID attribute.

None
kwargs AttributeType

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
def __init__(
    self,
    *children: Renderable,
    shadowrootmode: str | None = None,
    shadowrootdelegatesfocus: str | None = None,
    shadowrootclonable: str | None = None,
    shadowrootserializable: str | None = None,
    class_: str | None = None,
    id: str | None = None,
    **kwargs: AttributeType,
) -> None:
    super().__init__(*children, **kwargs | locals_cleanup(locals()))

Textarea

Textarea(
    *children,
    autocapitalize=None,
    autocomplete=None,
    autocorrect=None,
    autofocus=None,
    cols=None,
    dirname=None,
    disabled=None,
    form=None,
    maxlength=None,
    minlength=None,
    name=None,
    placeholder=None,
    readonly=None,
    required=None,
    rows=None,
    spellcheck=None,
    wrap=None,
    class_=None,
    id=None,
    style=None,
    **kwargs,
)

Bases: BaseTag

Defines a multiline input control (text area)

Parameters:

Name Type Description Default
children Renderable

Tags, strings, or other rendered content.

()
autocapitalize str | None

Determines whether inputted text is automatically capitalized.

None
autocomplete str | None

Controls whether inputted text can be automatically completed by the browser.

None
autocorrect str | None

Controls whether autocorrect is enabled on the input text.

None
autofocus bool | None

Indicates that the text area should have input focus when the page loads.

None
cols str | None

Defines the visible width of the text area in average character widths.

None
dirname str | None

Indicates text directionality of the element contents.

None
disabled bool | None

Determines if the user can interact with the text area.

None
form str | None

Associates the text area with a form element.

None
maxlength str | None

Defines the maximum number of characters allowed in the text area.

None
minlength str | None

Defines the minimum number of characters required in the text area.

None
name str | None

The name of the element.

None
placeholder str | None

Provides a hint to the user of what can be entered in the text area.

None
readonly bool | None

Indicates that the user may not edit the value of the text area.

None
required bool | None

Specifies that the text area must be filled out before submitting the form.

None
rows str | None

Defines the visible number of lines for the control.

None
spellcheck str | None

Specifies if the element is subject to browser or OS spell-check.

None
wrap str | None

Indicates how the text area handles line wrapping.

None
class_ str | None

Substituted as the DOM class attribute.

None
id str | None

DOM ID attribute.

None
style str | None

Inline style attribute.

None
kwargs AttributeType

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
def __init__(
    self,
    *children: Renderable,
    autocapitalize: str | None = None,
    autocomplete: str | None = None,
    autocorrect: str | None = None,
    autofocus: bool | None = None,
    cols: str | None = None,
    dirname: str | None = None,
    disabled: bool | None = None,
    form: str | None = None,
    maxlength: str | None = None,
    minlength: str | None = None,
    name: str | None = None,
    placeholder: str | None = None,
    readonly: bool | None = None,
    required: bool | None = None,
    rows: str | None = None,
    spellcheck: str | None = None,
    wrap: str | None = None,
    class_: str | None = None,
    id: str | None = None,
    style: str | None = None,
    **kwargs: AttributeType,
) -> None:
    super().__init__(*children, **kwargs | locals_cleanup(locals()))

Th

Th(
    *children,
    abbr=None,
    colspan=None,
    headers=None,
    rowspan=None,
    scope=None,
    class_=None,
    id=None,
    style=None,
    **kwargs,
)

Bases: BaseTag

Defines a header cell in a table

Parameters:

Name Type Description Default
children Renderable

Tags, strings, or other rendered content.

()
abbr str | None

An abbreviated description of the header cell content.

None
colspan str | None

Defines the number of columns a header cell should span.

None
headers str | None

list of string ids of the <th> elements that provide the headers for the cell.

None
rowspan str | None

Defines the number of rows a header cell should span.

None
scope str | None

Specifies whether the header cell is a header for a column, row, or group of columns or rows.

None
class_ str | None

Substituted as the DOM class attribute.

None
id str | None

DOM ID attribute.

None
style str | None

Inline style attribute.

None
kwargs AttributeType

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
def __init__(
    self,
    *children: Renderable,
    abbr: str | None = None,
    colspan: str | None = None,
    headers: str | None = None,
    rowspan: str | None = None,
    scope: str | None = None,
    class_: str | None = None,
    id: str | None = None,
    style: str | None = None,
    **kwargs: AttributeType,
) -> None:
    super().__init__(*children, **kwargs | locals_cleanup(locals()))

Time

Time(
    *children,
    datetime=None,
    class_=None,
    id=None,
    style=None,
    **kwargs,
)

Bases: BaseTag

Defines a specific time (or datetime)

Parameters:

Name Type Description Default
children Renderable

Tags, strings, or other rendered content.

()
datetime str | None

Specifies the date and/or time format.

None
class_ str | None

Substituted as the DOM class attribute.

None
id str | None

DOM ID attribute.

None
style str | None

Inline style attribute.

None
kwargs AttributeType

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
def __init__(
    self,
    *children: Renderable,
    datetime: str | None = None,
    class_: str | None = None,
    id: str | None = None,
    style: str | None = None,
    **kwargs: AttributeType,
) -> None:
    super().__init__(*children, **kwargs | locals_cleanup(locals()))

Track

Track(
    *,
    default=None,
    kind=None,
    label=None,
    srclang=None,
    src=None,
    class_=None,
    id=None,
    style=None,
    **kwargs,
)

Bases: SelfClosingTag

Defines text tracks for media elements (

Parameters:

Name Type Description Default
default str | None

Indicates that the track is to be enabled if the user's preferences do not indicate any.

None
kind str | None

Specifies how the text track is meant to be used.

None
label str | None

Provides a user-readable title for the text track.

None
srclang str | None

Specifies the language of the text track data.

None
src str | None

Specifies the URL of the track file.

None
class_ str | None

Substituted as the DOM class attribute.

None
id str | None

DOM ID attribute.

None
style str | None

Inline style attribute.

None
kwargs AttributeType

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
def __init__(
    self,
    *,
    default: str | None = None,
    kind: str | None = None,
    label: str | None = None,
    srclang: str | None = None,
    src: str | None = None,
    class_: str | None = None,
    id: str | None = None,
    style: str | None = None,
    **kwargs: AttributeType,
) -> None:
    super().__init__(**kwargs | locals_cleanup(locals()))

U

U(
    *children,
    compact=None,
    type=None,
    class_=None,
    id=None,
    style=None,
    **kwargs,
)

Bases: BaseTag

Defines some text that is unarticulated and styled differently from normal text

Source code in src/air/tags/models/stock.py
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
def __init__(
    self,
    *children: Renderable,
    compact: str | None = None,
    type: str | None = None,
    class_: str | None = None,
    id: str | None = None,
    style: str | None = None,
    **kwargs: AttributeType,
) -> None:
    super().__init__(*children, **kwargs | locals_cleanup(locals()))

Video

Video(
    *children,
    src=None,
    autoplay=None,
    controls=None,
    controlslist=None,
    crossorigin=None,
    disablepictureinpicture=None,
    disableremoteplayback=None,
    height=None,
    width=None,
    loop=None,
    muted=None,
    playsinline=None,
    poster=None,
    preload=None,
    class_=None,
    id=None,
    style=None,
    **kwargs,
)

Bases: BaseTag

Defines embedded video content

Source code in src/air/tags/models/stock.py
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
def __init__(
    self,
    *children: Renderable,
    src: str | None = None,
    autoplay: str | None = None,
    controls: str | None = None,
    controlslist: str | None = None,
    crossorigin: str | None = None,
    disablepictureinpicture: str | None = None,
    disableremoteplayback: str | None = None,
    height: str | int | None = None,
    width: str | int | None = None,
    loop: str | None = None,
    muted: str | None = None,
    playsinline: str | None = None,
    poster: str | None = None,
    preload: str | None = None,
    class_: str | None = None,
    id: str | None = None,
    style: str | None = None,
    **kwargs: AttributeType,
) -> None:
    super().__init__(*children, **kwargs | locals_cleanup(locals()))