Skip to content

Tags E-M

Embed

Embed(*children, src=None, type=None, width=None, height=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Defines a container for an external application

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
src str | None

Specifies the address of the external file to embed.

None
type str | None

Specifies the media type of the embedded content.

None
width str | int | None

Specifies the width of the embedded content.

None
height str | int | None

Specifies the height of the embedded content.

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 str | float | int | bool

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
822
823
824
825
826
827
828
829
830
831
832
833
834
835
def __init__(
    self,
    *children: Any,
    src: str | None = None,
    type: str | None = None,
    width: str | int | None = None,
    height: str | int | None = None,
    class_: str | None = None,
    id: str | None = None,
    style: str | None = None,
    **kwargs: str | float | int | bool,
):
    super().__init__(*children, **kwargs | locals_cleanup(locals(), self))
    self.self_closing = True

Fieldset

Fieldset(*children, disabled=None, form=None, name=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Groups related elements in a form

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
disabled str | None

Specifies that a group of related form elements should be disabled.

None
form str | None

Specifies which form the fieldset belongs to.

None
name str | None

Specifies a name for the fieldset.

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 str | float | int | bool

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
852
853
854
855
856
857
858
859
860
861
862
863
def __init__(
    self,
    *children: Any,
    disabled: str | None = None,
    form: str | None = None,
    name: str | None = None,
    class_: str | None = None,
    id: str | None = None,
    style: str | None = None,
    **kwargs: str | float | int | bool,
):
    super().__init__(*children, **kwargs | locals_cleanup(locals(), self))

Form

Form(*children, action=None, method=None, accept_charset=None, autocomplete=None, enctype=None, name=None, novalidate=None, rel=None, target=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Defines an HTML form for user input

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
action str | None

Specifies where to send the form-data when a form is submitted.

None
method str | None

Specifies the HTTP method to use when sending form-data.

None
accept_charset str | None

Specifies the character encodings that are to be used for the form submission.

None
autocomplete str | None

Specifies whether a form should have autocomplete on or off.

None
enctype str | None

Specifies how the form-data should be encoded when submitting it to the server.

None
name str | None

Specifies the name of the form.

None
novalidate str | None

Specifies that the form should not be validated when submitted.

None
rel str | None

Specifies the relationship between a linked resource and the current document.

None
target str | None

Specifies where to display the response that is received after submitting the form.

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 str | float | int | bool

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
def __init__(
    self,
    *children: Any,
    action: str | None = None,
    method: str | None = None,
    accept_charset: str | None = None,
    autocomplete: str | None = None,
    enctype: str | None = None,
    name: str | None = None,
    novalidate: str | None = None,
    rel: str | None = None,
    target: str | None = None,
    class_: str | None = None,
    id: str | None = None,
    style: str | None = None,
    **kwargs: str | float | int | bool,
):
    super().__init__(*children, **kwargs | locals_cleanup(locals(), self))

Head

Head(*children, profile=None, **kwargs)

Bases: Tag

Contains metadata/information for the document

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
profile str | None

Specifies the URL of a document that contains a line-break-separated list of links.

None
kwargs str | float | int | bool

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
1113
1114
1115
1116
1117
1118
1119
def __init__(
    self,
    *children: Any,
    profile: str | None = None,
    **kwargs: str | float | int | bool,
):
    super().__init__(*children, **kwargs | locals_cleanup(locals(), self))

Html

Html(*children, **kwargs)

Bases: Tag

Defines the root of an HTML document

Source code in src/air/tags/models/base.py
19
20
21
22
23
24
25
26
27
def __init__(self, *children: Any, **kwargs: str | int | float | bool):
    """
    Args:
        children: Tags, strings, or other rendered content.
        kwargs: Keyword arguments transformed into tag attributes.
    """
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Iframe

Iframe(*children, src=None, srcdoc=None, width=None, height=None, allow=None, allowfullscreen=None, allowpaymentrequest=None, loading=None, name=None, referrerpolicy=None, sandbox=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Defines an inline frame

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
src str | None

Specifies the URL of the page to embed.

None
srcdoc str | None

Specifies the HTML content of the page to show in the