Skip to content

Tags A-D

A

A(*children, href=None, target=None, download=None, rel=None, hreflang=None, type=None, referrerpolicy=None, media=None, ping=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Defines a hyperlink

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
href str | None

Specifies the URL of the page the link goes to.

None
target str | None

Specifies where to open the linked document.

None
download str | None

Specifies that the target will be downloaded when a user clicks on the hyperlink.

None
rel str | None

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

None
hreflang str | None

Specifies the language of the linked document.

None
type str | None

Specifies the media type of the linked document.

None
referrerpolicy str | None

Specifies which referrer information to send with the link.

None
media str | None

Specifies what media/device the linked document is optimized for.

None
ping str | None

Specifies a space-separated list of URLs to which, when the link is followed, post requests with the body ping will be sent by the browser (in the background). Typically used for tracking.

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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
def __init__(
    self,
    *children: Any,
    href: str | None = None,
    target: str | None = None,
    download: str | None = None,
    rel: str | None = None,
    hreflang: str | None = None,
    type: str | None = None,
    referrerpolicy: str | None = None,
    media: str | None = None,
    ping: 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))

Area

Area(*children, alt=None, coords=None, download=None, href=None, ping=None, referrerpolicy=None, rel=None, shape=None, target=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Defines an area inside an image map

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
alt str | None

Specifies an alternate text for an area. Required if the href attribute is present.

None
coords str | None

Specifies the coordinates of an area.

None
download str | None

Specifies that the target will be downloaded when a user clicks on the hyperlink.

None
href str | None

Specifies the URL of the page the link goes to.

None
ping str | None

Specifies a space-separated list of URLs to which, when the link is followed, post requests with the body ping will be sent by the browser (in the background). Typically used for tracking.

None
referrerpolicy str | None

Specifies which referrer information to send with the link.

None
rel str | None

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

None
shape str | None

Specifies the shape of an area.

None
target str | None

Specifies where to open the linked document.

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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
def __init__(
    self,
    *children: Any,
    alt: str | None = None,
    coords: str | None = None,
    download: str | None = None,
    href: str | None = None,
    ping: str | None = None,
    referrerpolicy: str | None = None,
    rel: str | None = None,
    shape: 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))
    self.self_closing = True

Audio

Audio(*children, autoplay=None, controls=None, loop=None, muted=None, preload=None, src=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Defines embedded sound content

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
autoplay str | None

Specifies that the audio will start playing as soon as it is ready.

None
controls str | None

Specifies that audio controls should be displayed (such as a play/pause button etc).

None
loop str | None

Specifies that the audio will start over again, every time it is finished.

None
muted str | None

Specifies that the audio output should be muted.

None
preload str | None

Specifies if and how the author thinks the audio should be loaded when the page loads.

None
src str | None

Specifies the URL of the audio 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 str | float | int | bool

Keyword arguments transformed into tag attributes.

{}
Source code in src/air/tags/models/stock.py
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
def __init__(
    self,
    *children: Any,
    autoplay: str | None = None,
    controls: str | None = None,
    loop: str | None = None,
    muted: str | None = None,
    preload: str | None = None,
    src: 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))

Base

Base(*children, href=None, target=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

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

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
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
243
244
245
246
247
248
249
250
251
252
253
254
def __init__(
    self,
    *children: Any,
    href: 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))
    self.self_closing = True

Bdi

Bdi(*children, class_=None, id=None, style=None, **kwargs)

Bases: Tag

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

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
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
268
269
270
271
272
273
274
275
276
def __init__(
    self,
    *children: Any,
    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))

Blockquote

Blockquote(*children, cite=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Defines a section that is quoted from another source

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
cite str | None

Specifies the source of the quotation.

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
315
316
317
318
319
320
321
322
323
324
def __init__(
    self,
    *children: Any,
    cite: 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))

Button

Button(*children, name=None, type=None, value=None, autofocus=None, disabled=None, form=None, formaction=None, formenctype=None, formmethod=None, formnovalidate=None, formtarget=None, popovertarget=None, popovertargetaction=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Defines a clickable button

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
name str | None

Specifies a name for the button.

None
type str | None

Specifies the type of button.

None
value str | None

Specifies an initial value for the button.

None
autofocus str | None

Specifies that a button should automatically get focus when the page loads.

None
disabled str | None

Specifies that a button should be disabled.

None
form str | None

Specifies which form the button belongs to.

None
formaction str | None

Specifies where to send the form-data when a form is submitted. Only for type="submit".

None
formenctype str | None

Specifies how the form-data should be encoded before sending it to a server. Only for type="submit".

None
formmethod str | None

Specifies how to send the form-data (which HTTP method to use). Only for type="submit".

None
formnovalidate str | None

Specifies that the form-data should not be validated on submission. Only for type="submit".

None
formtarget str | None

Specifies where to display the response that is received after submitting the form. Only for type="submit".

None
popovertarget str | None

Specifies which popover element to invoke.

None
popovertargetaction str | None

Specifies what action to perform on the popover element.

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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
def __init__(
    self,
    *children: Any,
    name: str | None = None,
    type: str | None = None,
    value: str | None = None,
    autofocus: str | None = None,
    disabled: str | None = None,
    form: str | None = None,
    formaction: str | None = None,
    formenctype: str | None = None,
    formmethod: str | None = None,
    formnovalidate: str | None = None,
    formtarget: str | None = None,
    popovertarget: str | None = None,
    popovertargetaction: 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))

Canvas

Canvas(*children, width=None, height=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

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

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
width str | int | None

Specifies the width of the canvas.

None
height str | int | None

Specifies the height of the canvas.

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
427
428
429
430
431
432
433
434
435
436
437
def __init__(
    self,
    *children: Any,
    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))

Col

Col(*children, span=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Specifies column properties for each column within a element

Parameters:

element should span.

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
span str | None

Specifies the number of columns a

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
518
519
520
521
522
523
524
525
526
527
528
def __init__(
    self,
    *children: Any,
    span: 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))
    self.self_closing = True

Colgroup

Colgroup(*children, span=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

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

Parameters:

element should span.

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
span str | None

Specifies the number of columns a

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
543
544
545
546
547
548
549
550
551
552
def __init__(
    self,
    *children: Any,
    span: 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))

Data

Data(*children, value=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Adds a machine-readable translation of a given content

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
value str | None

Specifies the machine-readable translation of the 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
567
568
569
570
571
572
573
574
575
576
def __init__(
    self,
    *children: Any,
    value: 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))

Dd

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

Bases: Tag

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

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
cite str | None

Specifies the source of the quotation.

None
datetime str | None

Specifies the date and time of the quotation.

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
614
615
616
617
618
619
620
621
622
623
624
def __init__(
    self,
    *children: Any,
    cite: str | None = None,
    datetime: 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))

Details

Details(*children, open=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Defines additional details that the user can view or hide

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
open str | None

Specifies that the details should be visible (open) to the user.

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
661
662
663
664
665
666
667
668
669
670
def __init__(
    self,
    *children: Any,
    open: 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))

Dialog

Dialog(*children, open=None, class_=None, id=None, style=None, **kwargs)

Bases: Tag

Defines a dialog box or window

Parameters:

Name Type Description Default
children Any

Tags, strings, or other rendered content.

()
open str | None

Specifies that the dialog box should be visible (open) to the user.

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
707
708
709
710
711
712
713
714
715
716
def __init__(
    self,
    *children: Any,
    open: 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))