Skip to content

Tags

Note

Tags, or Air Tags, are explained in the concepts document about tags.

Adds s-expression HTML tags to air.

Tag

Tag(*children, **kwargs)

Sets four attributes, name, module, children, and attrs. These are important for Starlette view responses, as nested objects get auto-serialized to JSON and need to be rebuilt. Without the values of these attributes, the object reconstruction can't occur

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

CaseTag

CaseTag(*children, **kwargs)

Bases: Tag

This is for case-sensitive tags like those used in SVG generation.

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

SafeStr

Bases: str

A string subclass that doesn't trigger html.escape() when called by Tag.render()

Example

sample = SafeStr('Hello, world')

Html

Html(*children, **kwargs)

Bases: Tag

Defines the root of an HTML document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

RawHTML

RawHTML(*args, **kwargs)

Bases: Tag

Renders raw HTML content without escaping.

Parameters:

Name Type Description Default
html_string

A single string containing raw HTML to render

required

Raises:

Type Description
TypeError

If non-string content is provided

ValueError

If multiple arguments are provided

Example

RawHTML('Bold text') 'Bold text'

Use with other tags

Div( ... P("Safe content"), ... RawHTML('


'), ... P("More safe content") ... )

Initialize RawHTML with a single string argument.

Parameters:

Name Type Description Default
*args

Should be exactly one string argument

()
**kwargs

Ignored (for consistency with Tag interface)

{}
Source code in src/air/tags.py
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
def __init__(self, *args, **kwargs):
    """Initialize RawHTML with a single string argument.

    Args:
        *args: Should be exactly one string argument
        **kwargs: Ignored (for consistency with Tag interface)
    """
    if len(args) > 1:
        raise ValueError("RawHTML accepts only one string argument")

    html_string = args[0] if args else ""

    if not isinstance(html_string, str):
        raise TypeError("RawHTML only accepts string content")

    super().__init__(html_string)

render

render()

Render the raw HTML string without escaping.

Source code in src/air/tags.py
191
192
193
def render(self) -> str:
    """Render the raw HTML string without escaping."""
    return self._children[0] if self._children else ""

NoEscapeTag

NoEscapeTag(*children, **kwargs)

Bases: Tag

Custom tag that does not escape its children.

This is used for tags like Script and Style where content should not be HTML-escaped.

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

render

render()

Render the tag with unescaped content.

Source code in src/air/tags.py
203
204
205
206
def render(self) -> str:
    """Render the tag with unescaped content."""
    content = self._children[0] if self._children else ""
    return f"<{self.name}{self.attrs}>{content}</{self.name}>"

Script

Script(*children, **kwargs)

Bases: NoEscapeTag

Defines a client-side script

Warning: Script tag does not protect against code injection.

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Style

Style(*children, **kwargs)

Bases: NoEscapeTag

Defines style information for a document

Warning: Style tag does not protect against code injection.

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

A

A(*children, **kwargs)

Bases: Tag

Defines a hyperlink

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Abbr

Abbr(*children, **kwargs)

Bases: Tag

Defines an abbreviation or an acronym

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Address

Address(*children, **kwargs)

Bases: Tag

Defines contact information for the author/owner of a document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Area

Area(*children, **kwargs)

Bases: Tag

Defines an area inside an image map

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Article

Article(*children, **kwargs)

Bases: Tag

Defines an article

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Aside

Aside(*children, **kwargs)

Bases: Tag

Defines content aside from the page content

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Audio

Audio(*children, **kwargs)

Bases: Tag

Defines embedded sound content

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

B

B(*children, **kwargs)

Bases: Tag

Defines bold text

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Base

Base(*children, **kwargs)

Bases: Tag

Specifies the base URL/target for all relative URLs in a document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Bdi

Bdi(*children, **kwargs)

Bases: Tag

Isolates a part of text that might be formatted in a different direction from other text outside it

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Bdo

Bdo(*children, **kwargs)

Bases: Tag

Overrides the current text direction

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Blockquote

Blockquote(*children, **kwargs)

Bases: Tag

Defines a section that is quoted from another source

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Body

Body(*children, **kwargs)

Bases: Tag

Defines the document's body

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Br

Br(*children, **kwargs)

Bases: Tag

Defines a single line break

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Button

Button(*children, **kwargs)

Bases: Tag

Defines a clickable button

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Canvas

Canvas(*children, **kwargs)

Bases: Tag

Used to draw graphics, on the fly, via scripting (usually JavaScript)

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Caption

Caption(*children, **kwargs)

Bases: Tag

Defines a table caption

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Cite

Cite(*children, **kwargs)

Bases: Tag

Defines the title of a work

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Code

Code(*children, **kwargs)

Bases: Tag

Defines a piece of computer code

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Col

Col(*children, **kwargs)

Bases: Tag

Specifies column properties for each column within a element

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Colgroup

Colgroup(*children, **kwargs)

Bases: Tag

Specifies a group of one or more columns in a table for formatting

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Data

Data(*children, **kwargs)

Bases: Tag

Adds a machine-readable translation of a given content

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Datalist

Datalist(*children, **kwargs)

Bases: Tag

Specifies a list of pre-defined options for input controls

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Dd

Dd(*children, **kwargs)

Bases: Tag

Defines a description/value of a term in a description list

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Del

Del(*children, **kwargs)

Bases: Tag

Defines text that has been deleted from a document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Details

Details(*children, **kwargs)

Bases: Tag

Defines additional details that the user can view or hide

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Dfn

Dfn(*children, **kwargs)

Bases: Tag

Specifies a term that is going to be defined within the content

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Dialog

Dialog(*children, **kwargs)

Bases: Tag

Defines a dialog box or window

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Div

Div(*children, **kwargs)

Bases: Tag

Defines a section in a document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Dl

Dl(*children, **kwargs)

Bases: Tag

Defines a description list

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Dt

Dt(*children, **kwargs)

Bases: Tag

Defines a term/name in a description list

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Em

Em(*children, **kwargs)

Bases: Tag

Defines emphasized text

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Embed

Embed(*children, **kwargs)

Bases: Tag

Defines a container for an external application

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Fieldset

Fieldset(*children, **kwargs)

Bases: Tag

Groups related elements in a form

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Figcaption

Figcaption(*children, **kwargs)

Bases: Tag

Defines a caption for a

element

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Figure

Figure(*children, **kwargs)

Bases: Tag

Specifies self-contained content

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Footer

Footer(*children, **kwargs)

Bases: Tag

Defines a footer for a document or section

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Form

Form(*children, **kwargs)

Bases: Tag

Defines an HTML form for user input

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

H1

H1(*children, **kwargs)

Bases: Tag

H1 header

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

H2

H2(*children, **kwargs)

Bases: Tag

H2 header

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

H3

H3(*children, **kwargs)

Bases: Tag

H3 header

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

H4

H4(*children, **kwargs)

Bases: Tag

H4 header

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

H5

H5(*children, **kwargs)

Bases: Tag

H5 header

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

H6

H6(*children, **kwargs)

Bases: Tag

H6 header

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Head

Head(*children, **kwargs)

Bases: Tag

Contains metadata/information for the document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Header

Header(*children, **kwargs)

Bases: Tag

Defines a header for a document or section

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Hgroup

Hgroup(*children, **kwargs)

Bases: Tag

Defines a header and related content

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Hr

Hr(*children, **kwargs)

Bases: Tag

Defines a thematic change in the content

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

I

I(*children, **kwargs)

Bases: Tag

Defines a part of text in an alternate voice or mood

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Iframe

Iframe(*children, **kwargs)

Bases: Tag

Defines an inline frame

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Img

Img(*children, **kwargs)

Bases: Tag

Defines an image

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Input

Input(*children, **kwargs)

Bases: Tag

Defines an input control

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Ins

Ins(*children, **kwargs)

Bases: Tag

Defines a text that has been inserted into a document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Kbd

Kbd(*children, **kwargs)

Bases: Tag

Defines keyboard input

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Label

Label(*children, **kwargs)

Bases: Tag

Defines a label for an element

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Legend

Legend(*children, **kwargs)

Bases: Tag

Defines a caption for a

element

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Li

Li(*children, **kwargs)

Bases: Tag

Defines a list item

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs
Link(*children, **kwargs)

Bases: Tag

Defines the relationship between a document and an external resource (most used to link to style sheets)

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Main

Main(*children, **kwargs)

Bases: Tag

Specifies the main content of a document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Map

Map(*children, **kwargs)

Bases: Tag

Defines an image map

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Mark

Mark(*children, **kwargs)

Bases: Tag

Defines marked/highlighted text

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Menu

Menu(*children, **kwargs)

Bases: Tag

Defines an unordered list

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Meta

Meta(*children, **kwargs)

Bases: Tag

Defines metadata about an HTML document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Meter

Meter(*children, **kwargs)

Bases: Tag

Defines a scalar measurement within a known range (a gauge)

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Nav

Nav(*children, **kwargs)

Bases: Tag

Defines navigation links

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Noscript

Noscript(*children, **kwargs)

Bases: Tag

Defines an alternate content for users that do not support client-side scripts

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Object

Object(*children, **kwargs)

Bases: Tag

Defines a container for an external application

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Ol

Ol(*children, **kwargs)

Bases: Tag

Defines an ordered list

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Optgroup

Optgroup(*children, **kwargs)

Bases: Tag

Defines a group of related options in a drop-down list

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Option

Option(*children, **kwargs)

Bases: Tag

Defines an option in a drop-down list

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Output

Output(*children, **kwargs)

Bases: Tag

Defines the result of a calculation

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

P

P(*children, **kwargs)

Bases: Tag

Defines a paragraph

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Param

Param(*children, **kwargs)

Bases: Tag

Defines a parameter for an object

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Picture

Picture(*children, **kwargs)

Bases: Tag

Defines a container for multiple image resources

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Pre

Pre(*children, **kwargs)

Bases: Tag

Defines preformatted text

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Progress

Progress(*children, **kwargs)

Bases: Tag

Represents the progress of a task

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Q

Q(*children, **kwargs)

Bases: Tag

Defines a short quotation

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Rp

Rp(*children, **kwargs)

Bases: Tag

Defines what to show in browsers that do not support ruby annotations

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Rt

Rt(*children, **kwargs)

Bases: Tag

Defines an explanation/pronunciation of characters (for East Asian typography)

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Ruby

Ruby(*children, **kwargs)

Bases: Tag

Defines a ruby annotation (for East Asian typography)

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

S

S(*children, **kwargs)

Bases: Tag

Defines text that is no longer correct

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Samp

Samp(*children, **kwargs)

Bases: Tag

Defines sample output from a computer program

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Search

Search(*children, **kwargs)

Bases: Tag

Defines a search section

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Section

Section(*children, **kwargs)

Bases: Tag

Defines a section in a document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Select

Select(*children, **kwargs)

Bases: Tag

Defines a drop-down list

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Small

Small(*children, **kwargs)

Bases: Tag

Defines smaller text

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Source

Source(*children, **kwargs)

Bases: Tag

Defines multiple media resources for media elements (

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Span

Span(*children, **kwargs)

Bases: Tag

Defines a section in a document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Strong

Strong(*children, **kwargs)

Bases: Tag

Defines important text

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Sub

Sub(*children, **kwargs)

Bases: Tag

Defines subscripted text

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Summary

Summary(*children, **kwargs)

Bases: Tag

Defines a visible heading for a

element

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Sup

Sup(*children, **kwargs)

Bases: Tag

Defines superscripted text

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Table

Table(*children, **kwargs)

Bases: Tag

Defines a table

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Tbody

Tbody(*children, **kwargs)

Bases: Tag

Groups the body content in a table

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Td

Td(*children, **kwargs)

Bases: Tag

Defines a cell in a table

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Template

Template(*children, **kwargs)

Bases: Tag

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

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Textarea

Textarea(*children, **kwargs)

Bases: Tag

Defines a multiline input control (text area)

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Tfoot

Tfoot(*children, **kwargs)

Bases: Tag

Groups the footer content in a table

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Th

Th(*children, **kwargs)

Bases: Tag

Defines a header cell in a table

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Thead

Thead(*children, **kwargs)

Bases: Tag

Groups the header content in a table

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Time

Time(*children, **kwargs)

Bases: Tag

Defines a specific time (or datetime)

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Title

Title(*children, **kwargs)

Bases: Tag

Defines a title for the document

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Tr

Tr(*children, **kwargs)

Bases: Tag

Defines a row in a table

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Track

Track(*children, **kwargs)

Bases: Tag

Defines text tracks for media elements (

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

U

U(*children, **kwargs)

Bases: Tag

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

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Ul

Ul(*children, **kwargs)

Bases: Tag

Defines an unordered list

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Var

Var(*children, **kwargs)

Bases: Tag

Defines a variable

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Video

Video(*children, **kwargs)

Bases: Tag

Defines embedded video content

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

Wbr

Wbr(*children, **kwargs)

Bases: Tag

Defines a possible line-break

Source code in src/air/tags.py
70
71
72
73
74
75
76
77
def __init__(self, *children, **kwargs):
    """Sets four attributes, name, module, children, and attrs.
    These are important for Starlette view responses, as nested objects
    get auto-serialized to JSON and need to be rebuilt. Without
    the values of these attributes, the object reconstruction can't occur"""
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children, self._attrs = children, kwargs

clean_html_attr_key

clean_html_attr_key(key)

Clean up HTML attribute keys to match the standard W3C HTML spec.

Parameters:

Name Type Description Default
key str

An uncleaned HTML attribute key

required

Returns:

Cleaned HTML attribute key
Source code in src/air/tags.py
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
def clean_html_attr_key(key: str) -> str:
    """Clean up HTML attribute keys to match the standard W3C HTML spec.

    Args:
        key: An uncleaned HTML attribute key

    Returns:

        Cleaned HTML attribute key
    """
    # If a "_"-suffixed proxy for "class", "for", or "id" is used,
    # convert it to its normal HTML equivalent.
    key = dict(class_="class", for_="for", id_="id").get(key, key)
    # Remove leading underscores and replace underscores with dashes
    return key.lstrip("_").replace("_", "-")