html_compose.elements.a_element

  1from typing import Literal, Iterable, Mapping
  2
  3from ..attributes import GlobalAttrs, AnchorAttrs
  4from ..base_attribute import BaseAttribute
  5from ..base_element import BaseElement
  6from ..base_types import Resolvable, StrLike
  7
  8# This file is generated by tools/generate_elements.py
  9
 10
 11class a(BaseElement):
 12    """
 13    The 'a' element.  
 14    Description: Hyperlink  
 15    Categories: flow phrasing* interactive palpable  
 16    Parents: phrasing  
 17    Children: transparent*  
 18    Interface: HTMLAnchorElement  
 19    Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a  
 20    """  # fmt: skip
 21
 22    tag = "a"
 23    categories = ["flow", "phrasing*", "interactive", "palpable"]
 24
 25    class hint(GlobalAttrs, AnchorAttrs):
 26        """
 27        Type hints for "a" attrs  
 28        This class holds functions which return BaseAttributes  
 29        Which you can add to your element attrs  
 30        """  # fmt: skip
 31
 32        pass
 33
 34    _ = hint
 35
 36    def __init__(
 37        self,
 38        attrs: Iterable[BaseAttribute]
 39        | Mapping[str, Resolvable]
 40        | Iterable[
 41            BaseAttribute | Iterable[BaseAttribute] | Mapping[str, Resolvable]
 42        ]
 43        | None = None,
 44        id: StrLike | None = None,
 45        class_: Resolvable | None = None,
 46        download: StrLike | None = None,
 47        href: StrLike | None = None,
 48        hreflang: StrLike | None = None,
 49        ping: Resolvable | StrLike | None = None,
 50        referrerpolicy: StrLike | None = None,
 51        rel: Resolvable | StrLike | None = None,
 52        target: StrLike | None = None,
 53        type: StrLike | None = None,
 54        accesskey: Resolvable | StrLike | None = None,
 55        autocapitalize: Literal[
 56            "on", "off", "none", "sentences", "words", "characters"
 57        ]
 58        | StrLike
 59        | None = None,
 60        autocorrect: Literal["on", "off"] | StrLike | None = None,
 61        autofocus: bool | StrLike | None = None,
 62        contenteditable: Literal["true", "plaintext-only", "false"]
 63        | StrLike
 64        | None = None,
 65        dir: Literal["ltr", "rtl", "auto"] | StrLike | None = None,
 66        draggable: Literal["true", "false"] | StrLike | None = None,
 67        enterkeyhint: Literal[
 68            "enter", "done", "go", "next", "previous", "search", "send"
 69        ]
 70        | StrLike
 71        | None = None,
 72        hidden: Literal["until-found", "hidden", ""] | StrLike | None = None,
 73        inert: bool | StrLike | None = None,
 74        inputmode: Literal[
 75            "none",
 76            "text",
 77            "tel",
 78            "email",
 79            "url",
 80            "numeric",
 81            "decimal",
 82            "search",
 83        ]
 84        | StrLike
 85        | None = None,
 86        is_: StrLike | None = None,
 87        itemid: StrLike | None = None,
 88        itemprop: Resolvable | StrLike | None = None,
 89        itemref: Resolvable | StrLike | None = None,
 90        itemscope: bool | StrLike | None = None,
 91        itemtype: Resolvable | StrLike | None = None,
 92        lang: StrLike | None = None,
 93        nonce: StrLike | None = None,
 94        onauxclick: StrLike | None = None,
 95        onbeforeinput: StrLike | None = None,
 96        onbeforematch: StrLike | None = None,
 97        onbeforetoggle: StrLike | None = None,
 98        onblur: StrLike | None = None,
 99        oncancel: StrLike | None = None,
100        oncanplay: StrLike | None = None,
101        oncanplaythrough: StrLike | None = None,
102        onchange: StrLike | None = None,
103        onclick: StrLike | None = None,
104        onclose: StrLike | None = None,
105        oncontextlost: StrLike | None = None,
106        oncontextmenu: StrLike | None = None,
107        oncontextrestored: StrLike | None = None,
108        oncopy: StrLike | None = None,
109        oncuechange: StrLike | None = None,
110        oncut: StrLike | None = None,
111        ondblclick: StrLike | None = None,
112        ondrag: StrLike | None = None,
113        ondragend: StrLike | None = None,
114        ondragenter: StrLike | None = None,
115        ondragleave: StrLike | None = None,
116        ondragover: StrLike | None = None,
117        ondragstart: StrLike | None = None,
118        ondrop: StrLike | None = None,
119        ondurationchange: StrLike | None = None,
120        onemptied: StrLike | None = None,
121        onended: StrLike | None = None,
122        onerror: StrLike | None = None,
123        onfocus: StrLike | None = None,
124        onformdata: StrLike | None = None,
125        oninput: StrLike | None = None,
126        oninvalid: StrLike | None = None,
127        onkeydown: StrLike | None = None,
128        onkeypress: StrLike | None = None,
129        onkeyup: StrLike | None = None,
130        onload: StrLike | None = None,
131        onloadeddata: StrLike | None = None,
132        onloadedmetadata: StrLike | None = None,
133        onloadstart: StrLike | None = None,
134        onmousedown: StrLike | None = None,
135        onmouseenter: StrLike | None = None,
136        onmouseleave: StrLike | None = None,
137        onmousemove: StrLike | None = None,
138        onmouseout: StrLike | None = None,
139        onmouseover: StrLike | None = None,
140        onmouseup: StrLike | None = None,
141        onpaste: StrLike | None = None,
142        onpause: StrLike | None = None,
143        onplay: StrLike | None = None,
144        onplaying: StrLike | None = None,
145        onprogress: StrLike | None = None,
146        onratechange: StrLike | None = None,
147        onreset: StrLike | None = None,
148        onresize: StrLike | None = None,
149        onscroll: StrLike | None = None,
150        onscrollend: StrLike | None = None,
151        onsecuritypolicyviolation: StrLike | None = None,
152        onseeked: StrLike | None = None,
153        onseeking: StrLike | None = None,
154        onselect: StrLike | None = None,
155        onslotchange: StrLike | None = None,
156        onstalled: StrLike | None = None,
157        onsubmit: StrLike | None = None,
158        onsuspend: StrLike | None = None,
159        ontimeupdate: StrLike | None = None,
160        ontoggle: StrLike | None = None,
161        onvolumechange: StrLike | None = None,
162        onwaiting: StrLike | None = None,
163        onwheel: StrLike | None = None,
164        popover: Literal["auto", "manual"] | StrLike | None = None,
165        slot: StrLike | None = None,
166        spellcheck: Literal["true", "false", ""] | StrLike | None = None,
167        style: Resolvable | Mapping[StrLike, StrLike] | None = None,
168        tabindex: int | StrLike | None = None,
169        title: StrLike | None = None,
170        translate: Literal["yes", "no"] | StrLike | None = None,
171        writingsuggestions: Literal["true", "false", ""]
172        | StrLike
173        | None = None,
174        children: list | None = None,
175    ) -> None:
176        """
177        Initialize 'a' (Hyperlink) element.  
178        Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
179
180        Args:
181            attrs: 
182                A list or dictionary of attributes for the element
183            
184            id:
185                The element's ID
186            
187            class_:
188                Classes to which the element belongs
189            
190            download:
191                Whether to download the resource instead of navigating to it, and its filename if so
192            
193            href:
194                Address of the hyperlink.  
195                Value hint: Valid URL potentially surrounded by spaces
196            
197            hreflang:
198                Language of the linked resource.  
199                Value hint: Valid BCP 47 language tag
200            
201            ping:
202                URLs to ping
203            
204            referrerpolicy:
205                Referrer policy for fetches initiated by the element.  
206                Value hint: Referrer policy
207            
208            rel:
209                Relationship between the location in the document containing the hyperlink and the destination resource
210            
211            target:
212                Navigable for hyperlink navigation.  
213                Value hint: Valid navigable target name or keyword
214            
215            type:
216                Hint for the type of the referenced resource.  
217                Value hint: Valid MIME type string
218            
219            accesskey:
220                Keyboard shortcut to activate or focus element
221            
222            autocapitalize:
223                Recommended autocapitalization behavior (for supported input methods)
224            
225            autocorrect:
226                Recommended autocorrection behavior (for supported input methods)
227            
228            autofocus:
229                Automatically focus the element when the page is loaded
230            
231            contenteditable:
232                Whether the element is editable
233            
234            dir:
235                The text directionality of the element
236            
237            draggable:
238                Whether the element is draggable
239            
240            enterkeyhint:
241                Hint for selecting an enter key action
242            
243            hidden:
244                Whether the element is relevant
245            
246            inert:
247                Whether the element is inert.
248            
249            inputmode:
250                Hint for selecting an input modality
251            
252            is_:
253                Creates a customized built-in element.  
254                Value hint: Valid custom element name of a defined customized built-in element
255            
256            itemid:
257                Global identifier for a microdata item.  
258                Value hint: Valid URL potentially surrounded by spaces
259            
260            itemprop:
261                Property names of a microdata item
262            
263            itemref:
264                Referenced elements
265            
266            itemscope:
267                Introduces a microdata item
268            
269            itemtype:
270                Item types of a microdata item
271            
272            lang:
273                Language of the element.  
274                Value hint: Valid BCP 47 language tag or the empty string
275            
276            nonce:
277                Cryptographic nonce used in Content Security Policy checks [CSP]
278            
279            onauxclick:
280                auxclick event handler.  
281                Value hint: Event handler content attribute
282            
283            onbeforeinput:
284                beforeinput event handler.  
285                Value hint: Event handler content attribute
286            
287            onbeforematch:
288                beforematch event handler.  
289                Value hint: Event handler content attribute
290            
291            onbeforetoggle:
292                beforetoggle event handler.  
293                Value hint: Event handler content attribute
294            
295            onblur:
296                blur event handler.  
297                Value hint: Event handler content attribute
298            
299            oncancel:
300                cancel event handler.  
301                Value hint: Event handler content attribute
302            
303            oncanplay:
304                canplay event handler.  
305                Value hint: Event handler content attribute
306            
307            oncanplaythrough:
308                canplaythrough event handler.  
309                Value hint: Event handler content attribute
310            
311            onchange:
312                change event handler.  
313                Value hint: Event handler content attribute
314            
315            onclick:
316                click event handler.  
317                Value hint: Event handler content attribute
318            
319            onclose:
320                close event handler.  
321                Value hint: Event handler content attribute
322            
323            oncontextlost:
324                contextlost event handler.  
325                Value hint: Event handler content attribute
326            
327            oncontextmenu:
328                contextmenu event handler.  
329                Value hint: Event handler content attribute
330            
331            oncontextrestored:
332                contextrestored event handler.  
333                Value hint: Event handler content attribute
334            
335            oncopy:
336                copy event handler.  
337                Value hint: Event handler content attribute
338            
339            oncuechange:
340                cuechange event handler.  
341                Value hint: Event handler content attribute
342            
343            oncut:
344                cut event handler.  
345                Value hint: Event handler content attribute
346            
347            ondblclick:
348                dblclick event handler.  
349                Value hint: Event handler content attribute
350            
351            ondrag:
352                drag event handler.  
353                Value hint: Event handler content attribute
354            
355            ondragend:
356                dragend event handler.  
357                Value hint: Event handler content attribute
358            
359            ondragenter:
360                dragenter event handler.  
361                Value hint: Event handler content attribute
362            
363            ondragleave:
364                dragleave event handler.  
365                Value hint: Event handler content attribute
366            
367            ondragover:
368                dragover event handler.  
369                Value hint: Event handler content attribute
370            
371            ondragstart:
372                dragstart event handler.  
373                Value hint: Event handler content attribute
374            
375            ondrop:
376                drop event handler.  
377                Value hint: Event handler content attribute
378            
379            ondurationchange:
380                durationchange event handler.  
381                Value hint: Event handler content attribute
382            
383            onemptied:
384                emptied event handler.  
385                Value hint: Event handler content attribute
386            
387            onended:
388                ended event handler.  
389                Value hint: Event handler content attribute
390            
391            onerror:
392                error event handler.  
393                Value hint: Event handler content attribute
394            
395            onfocus:
396                focus event handler.  
397                Value hint: Event handler content attribute
398            
399            onformdata:
400                formdata event handler.  
401                Value hint: Event handler content attribute
402            
403            oninput:
404                input event handler.  
405                Value hint: Event handler content attribute
406            
407            oninvalid:
408                invalid event handler.  
409                Value hint: Event handler content attribute
410            
411            onkeydown:
412                keydown event handler.  
413                Value hint: Event handler content attribute
414            
415            onkeypress:
416                keypress event handler.  
417                Value hint: Event handler content attribute
418            
419            onkeyup:
420                keyup event handler.  
421                Value hint: Event handler content attribute
422            
423            onload:
424                load event handler.  
425                Value hint: Event handler content attribute
426            
427            onloadeddata:
428                loadeddata event handler.  
429                Value hint: Event handler content attribute
430            
431            onloadedmetadata:
432                loadedmetadata event handler.  
433                Value hint: Event handler content attribute
434            
435            onloadstart:
436                loadstart event handler.  
437                Value hint: Event handler content attribute
438            
439            onmousedown:
440                mousedown event handler.  
441                Value hint: Event handler content attribute
442            
443            onmouseenter:
444                mouseenter event handler.  
445                Value hint: Event handler content attribute
446            
447            onmouseleave:
448                mouseleave event handler.  
449                Value hint: Event handler content attribute
450            
451            onmousemove:
452                mousemove event handler.  
453                Value hint: Event handler content attribute
454            
455            onmouseout:
456                mouseout event handler.  
457                Value hint: Event handler content attribute
458            
459            onmouseover:
460                mouseover event handler.  
461                Value hint: Event handler content attribute
462            
463            onmouseup:
464                mouseup event handler.  
465                Value hint: Event handler content attribute
466            
467            onpaste:
468                paste event handler.  
469                Value hint: Event handler content attribute
470            
471            onpause:
472                pause event handler.  
473                Value hint: Event handler content attribute
474            
475            onplay:
476                play event handler.  
477                Value hint: Event handler content attribute
478            
479            onplaying:
480                playing event handler.  
481                Value hint: Event handler content attribute
482            
483            onprogress:
484                progress event handler.  
485                Value hint: Event handler content attribute
486            
487            onratechange:
488                ratechange event handler.  
489                Value hint: Event handler content attribute
490            
491            onreset:
492                reset event handler.  
493                Value hint: Event handler content attribute
494            
495            onresize:
496                resize event handler.  
497                Value hint: Event handler content attribute
498            
499            onscroll:
500                scroll event handler.  
501                Value hint: Event handler content attribute
502            
503            onscrollend:
504                scrollend event handler.  
505                Value hint: Event handler content attribute
506            
507            onsecuritypolicyviolation:
508                securitypolicyviolation event handler.  
509                Value hint: Event handler content attribute
510            
511            onseeked:
512                seeked event handler.  
513                Value hint: Event handler content attribute
514            
515            onseeking:
516                seeking event handler.  
517                Value hint: Event handler content attribute
518            
519            onselect:
520                select event handler.  
521                Value hint: Event handler content attribute
522            
523            onslotchange:
524                slotchange event handler.  
525                Value hint: Event handler content attribute
526            
527            onstalled:
528                stalled event handler.  
529                Value hint: Event handler content attribute
530            
531            onsubmit:
532                submit event handler.  
533                Value hint: Event handler content attribute
534            
535            onsuspend:
536                suspend event handler.  
537                Value hint: Event handler content attribute
538            
539            ontimeupdate:
540                timeupdate event handler.  
541                Value hint: Event handler content attribute
542            
543            ontoggle:
544                toggle event handler.  
545                Value hint: Event handler content attribute
546            
547            onvolumechange:
548                volumechange event handler.  
549                Value hint: Event handler content attribute
550            
551            onwaiting:
552                waiting event handler.  
553                Value hint: Event handler content attribute
554            
555            onwheel:
556                wheel event handler.  
557                Value hint: Event handler content attribute
558            
559            popover:
560                Makes the element a popover element
561            
562            slot:
563                The element's desired slot
564            
565            spellcheck:
566                Whether the element is to have its spelling and grammar checked
567            
568            style:
569                Presentational and formatting instructions.  
570                Value hint: CSS declarations*
571            
572            tabindex:
573                Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation
574            
575            title:
576                Advisory information for the element
577            
578            translate:
579                Whether the element is to be translated when the page is localized
580            
581            writingsuggestions:
582                Whether the element can offer writing suggestions or not.
583            
584        """  # fmt: skip
585        super().__init__(
586            "a", void_element=False, attrs=attrs, children=children
587        )
588        if not (id is None or id is False):
589            self._process_attr("id", id)
590        if not (class_ is None or class_ is False):
591            self._process_attr("class", class_)
592        if not (download is None or download is False):
593            self._process_attr("download", download)
594        if not (href is None or href is False):
595            self._process_attr("href", href)
596        if not (hreflang is None or hreflang is False):
597            self._process_attr("hreflang", hreflang)
598        if not (ping is None or ping is False):
599            self._process_attr("ping", ping)
600        if not (referrerpolicy is None or referrerpolicy is False):
601            self._process_attr("referrerpolicy", referrerpolicy)
602        if not (rel is None or rel is False):
603            self._process_attr("rel", rel)
604        if not (target is None or target is False):
605            self._process_attr("target", target)
606        if not (type is None or type is False):
607            self._process_attr("type", type)
608        if not (accesskey is None or accesskey is False):
609            self._process_attr("accesskey", accesskey)
610        if not (autocapitalize is None or autocapitalize is False):
611            self._process_attr("autocapitalize", autocapitalize)
612        if not (autocorrect is None or autocorrect is False):
613            self._process_attr("autocorrect", autocorrect)
614        if not (autofocus is None or autofocus is False):
615            self._process_attr("autofocus", autofocus)
616        if not (contenteditable is None or contenteditable is False):
617            self._process_attr("contenteditable", contenteditable)
618        if not (dir is None or dir is False):
619            self._process_attr("dir", dir)
620        if not (draggable is None or draggable is False):
621            self._process_attr("draggable", draggable)
622        if not (enterkeyhint is None or enterkeyhint is False):
623            self._process_attr("enterkeyhint", enterkeyhint)
624        if not (hidden is None or hidden is False):
625            self._process_attr("hidden", hidden)
626        if not (inert is None or inert is False):
627            self._process_attr("inert", inert)
628        if not (inputmode is None or inputmode is False):
629            self._process_attr("inputmode", inputmode)
630        if not (is_ is None or is_ is False):
631            self._process_attr("is", is_)
632        if not (itemid is None or itemid is False):
633            self._process_attr("itemid", itemid)
634        if not (itemprop is None or itemprop is False):
635            self._process_attr("itemprop", itemprop)
636        if not (itemref is None or itemref is False):
637            self._process_attr("itemref", itemref)
638        if not (itemscope is None or itemscope is False):
639            self._process_attr("itemscope", itemscope)
640        if not (itemtype is None or itemtype is False):
641            self._process_attr("itemtype", itemtype)
642        if not (lang is None or lang is False):
643            self._process_attr("lang", lang)
644        if not (nonce is None or nonce is False):
645            self._process_attr("nonce", nonce)
646        if not (onauxclick is None or onauxclick is False):
647            self._process_attr("onauxclick", onauxclick)
648        if not (onbeforeinput is None or onbeforeinput is False):
649            self._process_attr("onbeforeinput", onbeforeinput)
650        if not (onbeforematch is None or onbeforematch is False):
651            self._process_attr("onbeforematch", onbeforematch)
652        if not (onbeforetoggle is None or onbeforetoggle is False):
653            self._process_attr("onbeforetoggle", onbeforetoggle)
654        if not (onblur is None or onblur is False):
655            self._process_attr("onblur", onblur)
656        if not (oncancel is None or oncancel is False):
657            self._process_attr("oncancel", oncancel)
658        if not (oncanplay is None or oncanplay is False):
659            self._process_attr("oncanplay", oncanplay)
660        if not (oncanplaythrough is None or oncanplaythrough is False):
661            self._process_attr("oncanplaythrough", oncanplaythrough)
662        if not (onchange is None or onchange is False):
663            self._process_attr("onchange", onchange)
664        if not (onclick is None or onclick is False):
665            self._process_attr("onclick", onclick)
666        if not (onclose is None or onclose is False):
667            self._process_attr("onclose", onclose)
668        if not (oncontextlost is None or oncontextlost is False):
669            self._process_attr("oncontextlost", oncontextlost)
670        if not (oncontextmenu is None or oncontextmenu is False):
671            self._process_attr("oncontextmenu", oncontextmenu)
672        if not (oncontextrestored is None or oncontextrestored is False):
673            self._process_attr("oncontextrestored", oncontextrestored)
674        if not (oncopy is None or oncopy is False):
675            self._process_attr("oncopy", oncopy)
676        if not (oncuechange is None or oncuechange is False):
677            self._process_attr("oncuechange", oncuechange)
678        if not (oncut is None or oncut is False):
679            self._process_attr("oncut", oncut)
680        if not (ondblclick is None or ondblclick is False):
681            self._process_attr("ondblclick", ondblclick)
682        if not (ondrag is None or ondrag is False):
683            self._process_attr("ondrag", ondrag)
684        if not (ondragend is None or ondragend is False):
685            self._process_attr("ondragend", ondragend)
686        if not (ondragenter is None or ondragenter is False):
687            self._process_attr("ondragenter", ondragenter)
688        if not (ondragleave is None or ondragleave is False):
689            self._process_attr("ondragleave", ondragleave)
690        if not (ondragover is None or ondragover is False):
691            self._process_attr("ondragover", ondragover)
692        if not (ondragstart is None or ondragstart is False):
693            self._process_attr("ondragstart", ondragstart)
694        if not (ondrop is None or ondrop is False):
695            self._process_attr("ondrop", ondrop)
696        if not (ondurationchange is None or ondurationchange is False):
697            self._process_attr("ondurationchange", ondurationchange)
698        if not (onemptied is None or onemptied is False):
699            self._process_attr("onemptied", onemptied)
700        if not (onended is None or onended is False):
701            self._process_attr("onended", onended)
702        if not (onerror is None or onerror is False):
703            self._process_attr("onerror", onerror)
704        if not (onfocus is None or onfocus is False):
705            self._process_attr("onfocus", onfocus)
706        if not (onformdata is None or onformdata is False):
707            self._process_attr("onformdata", onformdata)
708        if not (oninput is None or oninput is False):
709            self._process_attr("oninput", oninput)
710        if not (oninvalid is None or oninvalid is False):
711            self._process_attr("oninvalid", oninvalid)
712        if not (onkeydown is None or onkeydown is False):
713            self._process_attr("onkeydown", onkeydown)
714        if not (onkeypress is None or onkeypress is False):
715            self._process_attr("onkeypress", onkeypress)
716        if not (onkeyup is None or onkeyup is False):
717            self._process_attr("onkeyup", onkeyup)
718        if not (onload is None or onload is False):
719            self._process_attr("onload", onload)
720        if not (onloadeddata is None or onloadeddata is False):
721            self._process_attr("onloadeddata", onloadeddata)
722        if not (onloadedmetadata is None or onloadedmetadata is False):
723            self._process_attr("onloadedmetadata", onloadedmetadata)
724        if not (onloadstart is None or onloadstart is False):
725            self._process_attr("onloadstart", onloadstart)
726        if not (onmousedown is None or onmousedown is False):
727            self._process_attr("onmousedown", onmousedown)
728        if not (onmouseenter is None or onmouseenter is False):
729            self._process_attr("onmouseenter", onmouseenter)
730        if not (onmouseleave is None or onmouseleave is False):
731            self._process_attr("onmouseleave", onmouseleave)
732        if not (onmousemove is None or onmousemove is False):
733            self._process_attr("onmousemove", onmousemove)
734        if not (onmouseout is None or onmouseout is False):
735            self._process_attr("onmouseout", onmouseout)
736        if not (onmouseover is None or onmouseover is False):
737            self._process_attr("onmouseover", onmouseover)
738        if not (onmouseup is None or onmouseup is False):
739            self._process_attr("onmouseup", onmouseup)
740        if not (onpaste is None or onpaste is False):
741            self._process_attr("onpaste", onpaste)
742        if not (onpause is None or onpause is False):
743            self._process_attr("onpause", onpause)
744        if not (onplay is None or onplay is False):
745            self._process_attr("onplay", onplay)
746        if not (onplaying is None or onplaying is False):
747            self._process_attr("onplaying", onplaying)
748        if not (onprogress is None or onprogress is False):
749            self._process_attr("onprogress", onprogress)
750        if not (onratechange is None or onratechange is False):
751            self._process_attr("onratechange", onratechange)
752        if not (onreset is None or onreset is False):
753            self._process_attr("onreset", onreset)
754        if not (onresize is None or onresize is False):
755            self._process_attr("onresize", onresize)
756        if not (onscroll is None or onscroll is False):
757            self._process_attr("onscroll", onscroll)
758        if not (onscrollend is None or onscrollend is False):
759            self._process_attr("onscrollend", onscrollend)
760        if not (
761            onsecuritypolicyviolation is None
762            or onsecuritypolicyviolation is False
763        ):
764            self._process_attr(
765                "onsecuritypolicyviolation", onsecuritypolicyviolation
766            )
767        if not (onseeked is None or onseeked is False):
768            self._process_attr("onseeked", onseeked)
769        if not (onseeking is None or onseeking is False):
770            self._process_attr("onseeking", onseeking)
771        if not (onselect is None or onselect is False):
772            self._process_attr("onselect", onselect)
773        if not (onslotchange is None or onslotchange is False):
774            self._process_attr("onslotchange", onslotchange)
775        if not (onstalled is None or onstalled is False):
776            self._process_attr("onstalled", onstalled)
777        if not (onsubmit is None or onsubmit is False):
778            self._process_attr("onsubmit", onsubmit)
779        if not (onsuspend is None or onsuspend is False):
780            self._process_attr("onsuspend", onsuspend)
781        if not (ontimeupdate is None or ontimeupdate is False):
782            self._process_attr("ontimeupdate", ontimeupdate)
783        if not (ontoggle is None or ontoggle is False):
784            self._process_attr("ontoggle", ontoggle)
785        if not (onvolumechange is None or onvolumechange is False):
786            self._process_attr("onvolumechange", onvolumechange)
787        if not (onwaiting is None or onwaiting is False):
788            self._process_attr("onwaiting", onwaiting)
789        if not (onwheel is None or onwheel is False):
790            self._process_attr("onwheel", onwheel)
791        if not (popover is None or popover is False):
792            self._process_attr("popover", popover)
793        if not (slot is None or slot is False):
794            self._process_attr("slot", slot)
795        if not (spellcheck is None or spellcheck is False):
796            self._process_attr("spellcheck", spellcheck)
797        if not (style is None or style is False):
798            self._process_attr("style", style)
799        if not (tabindex is None or tabindex is False):
800            self._process_attr("tabindex", tabindex)
801        if not (title is None or title is False):
802            self._process_attr("title", title)
803        if not (translate is None or translate is False):
804            self._process_attr("translate", translate)
805        if not (writingsuggestions is None or writingsuggestions is False):
806            self._process_attr("writingsuggestions", writingsuggestions)
 12class a(BaseElement):
 13    """
 14    The 'a' element.  
 15    Description: Hyperlink  
 16    Categories: flow phrasing* interactive palpable  
 17    Parents: phrasing  
 18    Children: transparent*  
 19    Interface: HTMLAnchorElement  
 20    Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a  
 21    """  # fmt: skip
 22
 23    tag = "a"
 24    categories = ["flow", "phrasing*", "interactive", "palpable"]
 25
 26    class hint(GlobalAttrs, AnchorAttrs):
 27        """
 28        Type hints for "a" attrs  
 29        This class holds functions which return BaseAttributes  
 30        Which you can add to your element attrs  
 31        """  # fmt: skip
 32
 33        pass
 34
 35    _ = hint
 36
 37    def __init__(
 38        self,
 39        attrs: Iterable[BaseAttribute]
 40        | Mapping[str, Resolvable]
 41        | Iterable[
 42            BaseAttribute | Iterable[BaseAttribute] | Mapping[str, Resolvable]
 43        ]
 44        | None = None,
 45        id: StrLike | None = None,
 46        class_: Resolvable | None = None,
 47        download: StrLike | None = None,
 48        href: StrLike | None = None,
 49        hreflang: StrLike | None = None,
 50        ping: Resolvable | StrLike | None = None,
 51        referrerpolicy: StrLike | None = None,
 52        rel: Resolvable | StrLike | None = None,
 53        target: StrLike | None = None,
 54        type: StrLike | None = None,
 55        accesskey: Resolvable | StrLike | None = None,
 56        autocapitalize: Literal[
 57            "on", "off", "none", "sentences", "words", "characters"
 58        ]
 59        | StrLike
 60        | None = None,
 61        autocorrect: Literal["on", "off"] | StrLike | None = None,
 62        autofocus: bool | StrLike | None = None,
 63        contenteditable: Literal["true", "plaintext-only", "false"]
 64        | StrLike
 65        | None = None,
 66        dir: Literal["ltr", "rtl", "auto"] | StrLike | None = None,
 67        draggable: Literal["true", "false"] | StrLike | None = None,
 68        enterkeyhint: Literal[
 69            "enter", "done", "go", "next", "previous", "search", "send"
 70        ]
 71        | StrLike
 72        | None = None,
 73        hidden: Literal["until-found", "hidden", ""] | StrLike | None = None,
 74        inert: bool | StrLike | None = None,
 75        inputmode: Literal[
 76            "none",
 77            "text",
 78            "tel",
 79            "email",
 80            "url",
 81            "numeric",
 82            "decimal",
 83            "search",
 84        ]
 85        | StrLike
 86        | None = None,
 87        is_: StrLike | None = None,
 88        itemid: StrLike | None = None,
 89        itemprop: Resolvable | StrLike | None = None,
 90        itemref: Resolvable | StrLike | None = None,
 91        itemscope: bool | StrLike | None = None,
 92        itemtype: Resolvable | StrLike | None = None,
 93        lang: StrLike | None = None,
 94        nonce: StrLike | None = None,
 95        onauxclick: StrLike | None = None,
 96        onbeforeinput: StrLike | None = None,
 97        onbeforematch: StrLike | None = None,
 98        onbeforetoggle: StrLike | None = None,
 99        onblur: StrLike | None = None,
100        oncancel: StrLike | None = None,
101        oncanplay: StrLike | None = None,
102        oncanplaythrough: StrLike | None = None,
103        onchange: StrLike | None = None,
104        onclick: StrLike | None = None,
105        onclose: StrLike | None = None,
106        oncontextlost: StrLike | None = None,
107        oncontextmenu: StrLike | None = None,
108        oncontextrestored: StrLike | None = None,
109        oncopy: StrLike | None = None,
110        oncuechange: StrLike | None = None,
111        oncut: StrLike | None = None,
112        ondblclick: StrLike | None = None,
113        ondrag: StrLike | None = None,
114        ondragend: StrLike | None = None,
115        ondragenter: StrLike | None = None,
116        ondragleave: StrLike | None = None,
117        ondragover: StrLike | None = None,
118        ondragstart: StrLike | None = None,
119        ondrop: StrLike | None = None,
120        ondurationchange: StrLike | None = None,
121        onemptied: StrLike | None = None,
122        onended: StrLike | None = None,
123        onerror: StrLike | None = None,
124        onfocus: StrLike | None = None,
125        onformdata: StrLike | None = None,
126        oninput: StrLike | None = None,
127        oninvalid: StrLike | None = None,
128        onkeydown: StrLike | None = None,
129        onkeypress: StrLike | None = None,
130        onkeyup: StrLike | None = None,
131        onload: StrLike | None = None,
132        onloadeddata: StrLike | None = None,
133        onloadedmetadata: StrLike | None = None,
134        onloadstart: StrLike | None = None,
135        onmousedown: StrLike | None = None,
136        onmouseenter: StrLike | None = None,
137        onmouseleave: StrLike | None = None,
138        onmousemove: StrLike | None = None,
139        onmouseout: StrLike | None = None,
140        onmouseover: StrLike | None = None,
141        onmouseup: StrLike | None = None,
142        onpaste: StrLike | None = None,
143        onpause: StrLike | None = None,
144        onplay: StrLike | None = None,
145        onplaying: StrLike | None = None,
146        onprogress: StrLike | None = None,
147        onratechange: StrLike | None = None,
148        onreset: StrLike | None = None,
149        onresize: StrLike | None = None,
150        onscroll: StrLike | None = None,
151        onscrollend: StrLike | None = None,
152        onsecuritypolicyviolation: StrLike | None = None,
153        onseeked: StrLike | None = None,
154        onseeking: StrLike | None = None,
155        onselect: StrLike | None = None,
156        onslotchange: StrLike | None = None,
157        onstalled: StrLike | None = None,
158        onsubmit: StrLike | None = None,
159        onsuspend: StrLike | None = None,
160        ontimeupdate: StrLike | None = None,
161        ontoggle: StrLike | None = None,
162        onvolumechange: StrLike | None = None,
163        onwaiting: StrLike | None = None,
164        onwheel: StrLike | None = None,
165        popover: Literal["auto", "manual"] | StrLike | None = None,
166        slot: StrLike | None = None,
167        spellcheck: Literal["true", "false", ""] | StrLike | None = None,
168        style: Resolvable | Mapping[StrLike, StrLike] | None = None,
169        tabindex: int | StrLike | None = None,
170        title: StrLike | None = None,
171        translate: Literal["yes", "no"] | StrLike | None = None,
172        writingsuggestions: Literal["true", "false", ""]
173        | StrLike
174        | None = None,
175        children: list | None = None,
176    ) -> None:
177        """
178        Initialize 'a' (Hyperlink) element.  
179        Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
180
181        Args:
182            attrs: 
183                A list or dictionary of attributes for the element
184            
185            id:
186                The element's ID
187            
188            class_:
189                Classes to which the element belongs
190            
191            download:
192                Whether to download the resource instead of navigating to it, and its filename if so
193            
194            href:
195                Address of the hyperlink.  
196                Value hint: Valid URL potentially surrounded by spaces
197            
198            hreflang:
199                Language of the linked resource.  
200                Value hint: Valid BCP 47 language tag
201            
202            ping:
203                URLs to ping
204            
205            referrerpolicy:
206                Referrer policy for fetches initiated by the element.  
207                Value hint: Referrer policy
208            
209            rel:
210                Relationship between the location in the document containing the hyperlink and the destination resource
211            
212            target:
213                Navigable for hyperlink navigation.  
214                Value hint: Valid navigable target name or keyword
215            
216            type:
217                Hint for the type of the referenced resource.  
218                Value hint: Valid MIME type string
219            
220            accesskey:
221                Keyboard shortcut to activate or focus element
222            
223            autocapitalize:
224                Recommended autocapitalization behavior (for supported input methods)
225            
226            autocorrect:
227                Recommended autocorrection behavior (for supported input methods)
228            
229            autofocus:
230                Automatically focus the element when the page is loaded
231            
232            contenteditable:
233                Whether the element is editable
234            
235            dir:
236                The text directionality of the element
237            
238            draggable:
239                Whether the element is draggable
240            
241            enterkeyhint:
242                Hint for selecting an enter key action
243            
244            hidden:
245                Whether the element is relevant
246            
247            inert:
248                Whether the element is inert.
249            
250            inputmode:
251                Hint for selecting an input modality
252            
253            is_:
254                Creates a customized built-in element.  
255                Value hint: Valid custom element name of a defined customized built-in element
256            
257            itemid:
258                Global identifier for a microdata item.  
259                Value hint: Valid URL potentially surrounded by spaces
260            
261            itemprop:
262                Property names of a microdata item
263            
264            itemref:
265                Referenced elements
266            
267            itemscope:
268                Introduces a microdata item
269            
270            itemtype:
271                Item types of a microdata item
272            
273            lang:
274                Language of the element.  
275                Value hint: Valid BCP 47 language tag or the empty string
276            
277            nonce:
278                Cryptographic nonce used in Content Security Policy checks [CSP]
279            
280            onauxclick:
281                auxclick event handler.  
282                Value hint: Event handler content attribute
283            
284            onbeforeinput:
285                beforeinput event handler.  
286                Value hint: Event handler content attribute
287            
288            onbeforematch:
289                beforematch event handler.  
290                Value hint: Event handler content attribute
291            
292            onbeforetoggle:
293                beforetoggle event handler.  
294                Value hint: Event handler content attribute
295            
296            onblur:
297                blur event handler.  
298                Value hint: Event handler content attribute
299            
300            oncancel:
301                cancel event handler.  
302                Value hint: Event handler content attribute
303            
304            oncanplay:
305                canplay event handler.  
306                Value hint: Event handler content attribute
307            
308            oncanplaythrough:
309                canplaythrough event handler.  
310                Value hint: Event handler content attribute
311            
312            onchange:
313                change event handler.  
314                Value hint: Event handler content attribute
315            
316            onclick:
317                click event handler.  
318                Value hint: Event handler content attribute
319            
320            onclose:
321                close event handler.  
322                Value hint: Event handler content attribute
323            
324            oncontextlost:
325                contextlost event handler.  
326                Value hint: Event handler content attribute
327            
328            oncontextmenu:
329                contextmenu event handler.  
330                Value hint: Event handler content attribute
331            
332            oncontextrestored:
333                contextrestored event handler.  
334                Value hint: Event handler content attribute
335            
336            oncopy:
337                copy event handler.  
338                Value hint: Event handler content attribute
339            
340            oncuechange:
341                cuechange event handler.  
342                Value hint: Event handler content attribute
343            
344            oncut:
345                cut event handler.  
346                Value hint: Event handler content attribute
347            
348            ondblclick:
349                dblclick event handler.  
350                Value hint: Event handler content attribute
351            
352            ondrag:
353                drag event handler.  
354                Value hint: Event handler content attribute
355            
356            ondragend:
357                dragend event handler.  
358                Value hint: Event handler content attribute
359            
360            ondragenter:
361                dragenter event handler.  
362                Value hint: Event handler content attribute
363            
364            ondragleave:
365                dragleave event handler.  
366                Value hint: Event handler content attribute
367            
368            ondragover:
369                dragover event handler.  
370                Value hint: Event handler content attribute
371            
372            ondragstart:
373                dragstart event handler.  
374                Value hint: Event handler content attribute
375            
376            ondrop:
377                drop event handler.  
378                Value hint: Event handler content attribute
379            
380            ondurationchange:
381                durationchange event handler.  
382                Value hint: Event handler content attribute
383            
384            onemptied:
385                emptied event handler.  
386                Value hint: Event handler content attribute
387            
388            onended:
389                ended event handler.  
390                Value hint: Event handler content attribute
391            
392            onerror:
393                error event handler.  
394                Value hint: Event handler content attribute
395            
396            onfocus:
397                focus event handler.  
398                Value hint: Event handler content attribute
399            
400            onformdata:
401                formdata event handler.  
402                Value hint: Event handler content attribute
403            
404            oninput:
405                input event handler.  
406                Value hint: Event handler content attribute
407            
408            oninvalid:
409                invalid event handler.  
410                Value hint: Event handler content attribute
411            
412            onkeydown:
413                keydown event handler.  
414                Value hint: Event handler content attribute
415            
416            onkeypress:
417                keypress event handler.  
418                Value hint: Event handler content attribute
419            
420            onkeyup:
421                keyup event handler.  
422                Value hint: Event handler content attribute
423            
424            onload:
425                load event handler.  
426                Value hint: Event handler content attribute
427            
428            onloadeddata:
429                loadeddata event handler.  
430                Value hint: Event handler content attribute
431            
432            onloadedmetadata:
433                loadedmetadata event handler.  
434                Value hint: Event handler content attribute
435            
436            onloadstart:
437                loadstart event handler.  
438                Value hint: Event handler content attribute
439            
440            onmousedown:
441                mousedown event handler.  
442                Value hint: Event handler content attribute
443            
444            onmouseenter:
445                mouseenter event handler.  
446                Value hint: Event handler content attribute
447            
448            onmouseleave:
449                mouseleave event handler.  
450                Value hint: Event handler content attribute
451            
452            onmousemove:
453                mousemove event handler.  
454                Value hint: Event handler content attribute
455            
456            onmouseout:
457                mouseout event handler.  
458                Value hint: Event handler content attribute
459            
460            onmouseover:
461                mouseover event handler.  
462                Value hint: Event handler content attribute
463            
464            onmouseup:
465                mouseup event handler.  
466                Value hint: Event handler content attribute
467            
468            onpaste:
469                paste event handler.  
470                Value hint: Event handler content attribute
471            
472            onpause:
473                pause event handler.  
474                Value hint: Event handler content attribute
475            
476            onplay:
477                play event handler.  
478                Value hint: Event handler content attribute
479            
480            onplaying:
481                playing event handler.  
482                Value hint: Event handler content attribute
483            
484            onprogress:
485                progress event handler.  
486                Value hint: Event handler content attribute
487            
488            onratechange:
489                ratechange event handler.  
490                Value hint: Event handler content attribute
491            
492            onreset:
493                reset event handler.  
494                Value hint: Event handler content attribute
495            
496            onresize:
497                resize event handler.  
498                Value hint: Event handler content attribute
499            
500            onscroll:
501                scroll event handler.  
502                Value hint: Event handler content attribute
503            
504            onscrollend:
505                scrollend event handler.  
506                Value hint: Event handler content attribute
507            
508            onsecuritypolicyviolation:
509                securitypolicyviolation event handler.  
510                Value hint: Event handler content attribute
511            
512            onseeked:
513                seeked event handler.  
514                Value hint: Event handler content attribute
515            
516            onseeking:
517                seeking event handler.  
518                Value hint: Event handler content attribute
519            
520            onselect:
521                select event handler.  
522                Value hint: Event handler content attribute
523            
524            onslotchange:
525                slotchange event handler.  
526                Value hint: Event handler content attribute
527            
528            onstalled:
529                stalled event handler.  
530                Value hint: Event handler content attribute
531            
532            onsubmit:
533                submit event handler.  
534                Value hint: Event handler content attribute
535            
536            onsuspend:
537                suspend event handler.  
538                Value hint: Event handler content attribute
539            
540            ontimeupdate:
541                timeupdate event handler.  
542                Value hint: Event handler content attribute
543            
544            ontoggle:
545                toggle event handler.  
546                Value hint: Event handler content attribute
547            
548            onvolumechange:
549                volumechange event handler.  
550                Value hint: Event handler content attribute
551            
552            onwaiting:
553                waiting event handler.  
554                Value hint: Event handler content attribute
555            
556            onwheel:
557                wheel event handler.  
558                Value hint: Event handler content attribute
559            
560            popover:
561                Makes the element a popover element
562            
563            slot:
564                The element's desired slot
565            
566            spellcheck:
567                Whether the element is to have its spelling and grammar checked
568            
569            style:
570                Presentational and formatting instructions.  
571                Value hint: CSS declarations*
572            
573            tabindex:
574                Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation
575            
576            title:
577                Advisory information for the element
578            
579            translate:
580                Whether the element is to be translated when the page is localized
581            
582            writingsuggestions:
583                Whether the element can offer writing suggestions or not.
584            
585        """  # fmt: skip
586        super().__init__(
587            "a", void_element=False, attrs=attrs, children=children
588        )
589        if not (id is None or id is False):
590            self._process_attr("id", id)
591        if not (class_ is None or class_ is False):
592            self._process_attr("class", class_)
593        if not (download is None or download is False):
594            self._process_attr("download", download)
595        if not (href is None or href is False):
596            self._process_attr("href", href)
597        if not (hreflang is None or hreflang is False):
598            self._process_attr("hreflang", hreflang)
599        if not (ping is None or ping is False):
600            self._process_attr("ping", ping)
601        if not (referrerpolicy is None or referrerpolicy is False):
602            self._process_attr("referrerpolicy", referrerpolicy)
603        if not (rel is None or rel is False):
604            self._process_attr("rel", rel)
605        if not (target is None or target is False):
606            self._process_attr("target", target)
607        if not (type is None or type is False):
608            self._process_attr("type", type)
609        if not (accesskey is None or accesskey is False):
610            self._process_attr("accesskey", accesskey)
611        if not (autocapitalize is None or autocapitalize is False):
612            self._process_attr("autocapitalize", autocapitalize)
613        if not (autocorrect is None or autocorrect is False):
614            self._process_attr("autocorrect", autocorrect)
615        if not (autofocus is None or autofocus is False):
616            self._process_attr("autofocus", autofocus)
617        if not (contenteditable is None or contenteditable is False):
618            self._process_attr("contenteditable", contenteditable)
619        if not (dir is None or dir is False):
620            self._process_attr("dir", dir)
621        if not (draggable is None or draggable is False):
622            self._process_attr("draggable", draggable)
623        if not (enterkeyhint is None or enterkeyhint is False):
624            self._process_attr("enterkeyhint", enterkeyhint)
625        if not (hidden is None or hidden is False):
626            self._process_attr("hidden", hidden)
627        if not (inert is None or inert is False):
628            self._process_attr("inert", inert)
629        if not (inputmode is None or inputmode is False):
630            self._process_attr("inputmode", inputmode)
631        if not (is_ is None or is_ is False):
632            self._process_attr("is", is_)
633        if not (itemid is None or itemid is False):
634            self._process_attr("itemid", itemid)
635        if not (itemprop is None or itemprop is False):
636            self._process_attr("itemprop", itemprop)
637        if not (itemref is None or itemref is False):
638            self._process_attr("itemref", itemref)
639        if not (itemscope is None or itemscope is False):
640            self._process_attr("itemscope", itemscope)
641        if not (itemtype is None or itemtype is False):
642            self._process_attr("itemtype", itemtype)
643        if not (lang is None or lang is False):
644            self._process_attr("lang", lang)
645        if not (nonce is None or nonce is False):
646            self._process_attr("nonce", nonce)
647        if not (onauxclick is None or onauxclick is False):
648            self._process_attr("onauxclick", onauxclick)
649        if not (onbeforeinput is None or onbeforeinput is False):
650            self._process_attr("onbeforeinput", onbeforeinput)
651        if not (onbeforematch is None or onbeforematch is False):
652            self._process_attr("onbeforematch", onbeforematch)
653        if not (onbeforetoggle is None or onbeforetoggle is False):
654            self._process_attr("onbeforetoggle", onbeforetoggle)
655        if not (onblur is None or onblur is False):
656            self._process_attr("onblur", onblur)
657        if not (oncancel is None or oncancel is False):
658            self._process_attr("oncancel", oncancel)
659        if not (oncanplay is None or oncanplay is False):
660            self._process_attr("oncanplay", oncanplay)
661        if not (oncanplaythrough is None or oncanplaythrough is False):
662            self._process_attr("oncanplaythrough", oncanplaythrough)
663        if not (onchange is None or onchange is False):
664            self._process_attr("onchange", onchange)
665        if not (onclick is None or onclick is False):
666            self._process_attr("onclick", onclick)
667        if not (onclose is None or onclose is False):
668            self._process_attr("onclose", onclose)
669        if not (oncontextlost is None or oncontextlost is False):
670            self._process_attr("oncontextlost", oncontextlost)
671        if not (oncontextmenu is None or oncontextmenu is False):
672            self._process_attr("oncontextmenu", oncontextmenu)
673        if not (oncontextrestored is None or oncontextrestored is False):
674            self._process_attr("oncontextrestored", oncontextrestored)
675        if not (oncopy is None or oncopy is False):
676            self._process_attr("oncopy", oncopy)
677        if not (oncuechange is None or oncuechange is False):
678            self._process_attr("oncuechange", oncuechange)
679        if not (oncut is None or oncut is False):
680            self._process_attr("oncut", oncut)
681        if not (ondblclick is None or ondblclick is False):
682            self._process_attr("ondblclick", ondblclick)
683        if not (ondrag is None or ondrag is False):
684            self._process_attr("ondrag", ondrag)
685        if not (ondragend is None or ondragend is False):
686            self._process_attr("ondragend", ondragend)
687        if not (ondragenter is None or ondragenter is False):
688            self._process_attr("ondragenter", ondragenter)
689        if not (ondragleave is None or ondragleave is False):
690            self._process_attr("ondragleave", ondragleave)
691        if not (ondragover is None or ondragover is False):
692            self._process_attr("ondragover", ondragover)
693        if not (ondragstart is None or ondragstart is False):
694            self._process_attr("ondragstart", ondragstart)
695        if not (ondrop is None or ondrop is False):
696            self._process_attr("ondrop", ondrop)
697        if not (ondurationchange is None or ondurationchange is False):
698            self._process_attr("ondurationchange", ondurationchange)
699        if not (onemptied is None or onemptied is False):
700            self._process_attr("onemptied", onemptied)
701        if not (onended is None or onended is False):
702            self._process_attr("onended", onended)
703        if not (onerror is None or onerror is False):
704            self._process_attr("onerror", onerror)
705        if not (onfocus is None or onfocus is False):
706            self._process_attr("onfocus", onfocus)
707        if not (onformdata is None or onformdata is False):
708            self._process_attr("onformdata", onformdata)
709        if not (oninput is None or oninput is False):
710            self._process_attr("oninput", oninput)
711        if not (oninvalid is None or oninvalid is False):
712            self._process_attr("oninvalid", oninvalid)
713        if not (onkeydown is None or onkeydown is False):
714            self._process_attr("onkeydown", onkeydown)
715        if not (onkeypress is None or onkeypress is False):
716            self._process_attr("onkeypress", onkeypress)
717        if not (onkeyup is None or onkeyup is False):
718            self._process_attr("onkeyup", onkeyup)
719        if not (onload is None or onload is False):
720            self._process_attr("onload", onload)
721        if not (onloadeddata is None or onloadeddata is False):
722            self._process_attr("onloadeddata", onloadeddata)
723        if not (onloadedmetadata is None or onloadedmetadata is False):
724            self._process_attr("onloadedmetadata", onloadedmetadata)
725        if not (onloadstart is None or onloadstart is False):
726            self._process_attr("onloadstart", onloadstart)
727        if not (onmousedown is None or onmousedown is False):
728            self._process_attr("onmousedown", onmousedown)
729        if not (onmouseenter is None or onmouseenter is False):
730            self._process_attr("onmouseenter", onmouseenter)
731        if not (onmouseleave is None or onmouseleave is False):
732            self._process_attr("onmouseleave", onmouseleave)
733        if not (onmousemove is None or onmousemove is False):
734            self._process_attr("onmousemove", onmousemove)
735        if not (onmouseout is None or onmouseout is False):
736            self._process_attr("onmouseout", onmouseout)
737        if not (onmouseover is None or onmouseover is False):
738            self._process_attr("onmouseover", onmouseover)
739        if not (onmouseup is None or onmouseup is False):
740            self._process_attr("onmouseup", onmouseup)
741        if not (onpaste is None or onpaste is False):
742            self._process_attr("onpaste", onpaste)
743        if not (onpause is None or onpause is False):
744            self._process_attr("onpause", onpause)
745        if not (onplay is None or onplay is False):
746            self._process_attr("onplay", onplay)
747        if not (onplaying is None or onplaying is False):
748            self._process_attr("onplaying", onplaying)
749        if not (onprogress is None or onprogress is False):
750            self._process_attr("onprogress", onprogress)
751        if not (onratechange is None or onratechange is False):
752            self._process_attr("onratechange", onratechange)
753        if not (onreset is None or onreset is False):
754            self._process_attr("onreset", onreset)
755        if not (onresize is None or onresize is False):
756            self._process_attr("onresize", onresize)
757        if not (onscroll is None or onscroll is False):
758            self._process_attr("onscroll", onscroll)
759        if not (onscrollend is None or onscrollend is False):
760            self._process_attr("onscrollend", onscrollend)
761        if not (
762            onsecuritypolicyviolation is None
763            or onsecuritypolicyviolation is False
764        ):
765            self._process_attr(
766                "onsecuritypolicyviolation", onsecuritypolicyviolation
767            )
768        if not (onseeked is None or onseeked is False):
769            self._process_attr("onseeked", onseeked)
770        if not (onseeking is None or onseeking is False):
771            self._process_attr("onseeking", onseeking)
772        if not (onselect is None or onselect is False):
773            self._process_attr("onselect", onselect)
774        if not (onslotchange is None or onslotchange is False):
775            self._process_attr("onslotchange", onslotchange)
776        if not (onstalled is None or onstalled is False):
777            self._process_attr("onstalled", onstalled)
778        if not (onsubmit is None or onsubmit is False):
779            self._process_attr("onsubmit", onsubmit)
780        if not (onsuspend is None or onsuspend is False):
781            self._process_attr("onsuspend", onsuspend)
782        if not (ontimeupdate is None or ontimeupdate is False):
783            self._process_attr("ontimeupdate", ontimeupdate)
784        if not (ontoggle is None or ontoggle is False):
785            self._process_attr("ontoggle", ontoggle)
786        if not (onvolumechange is None or onvolumechange is False):
787            self._process_attr("onvolumechange", onvolumechange)
788        if not (onwaiting is None or onwaiting is False):
789            self._process_attr("onwaiting", onwaiting)
790        if not (onwheel is None or onwheel is False):
791            self._process_attr("onwheel", onwheel)
792        if not (popover is None or popover is False):
793            self._process_attr("popover", popover)
794        if not (slot is None or slot is False):
795            self._process_attr("slot", slot)
796        if not (spellcheck is None or spellcheck is False):
797            self._process_attr("spellcheck", spellcheck)
798        if not (style is None or style is False):
799            self._process_attr("style", style)
800        if not (tabindex is None or tabindex is False):
801            self._process_attr("tabindex", tabindex)
802        if not (title is None or title is False):
803            self._process_attr("title", title)
804        if not (translate is None or translate is False):
805            self._process_attr("translate", translate)
806        if not (writingsuggestions is None or writingsuggestions is False):
807            self._process_attr("writingsuggestions", writingsuggestions)

The 'a' element.
Description: Hyperlink
Categories: flow phrasing* interactive palpable
Parents: phrasing
Children: transparent*
Interface: HTMLAnchorElement
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

a( attrs: Union[Iterable[html_compose.base_attribute.BaseAttribute], Mapping[str, Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]], Iterable[Union[html_compose.base_attribute.BaseAttribute, Iterable[html_compose.base_attribute.BaseAttribute], Mapping[str, Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]]]], NoneType] = None, id: str | float | int | bool | None = None, class_: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, download: str | float | int | bool | None = None, href: str | float | int | bool | None = None, hreflang: str | float | int | bool | None = None, ping: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, referrerpolicy: str | float | int | bool | None = None, rel: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, target: str | float | int | bool | None = None, type: str | float | int | bool | None = None, accesskey: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, autocapitalize: Union[Literal['on', 'off', 'none', 'sentences', 'words', 'characters'], str, float, int, bool, NoneType] = None, autocorrect: Union[Literal['on', 'off'], str, float, int, bool, NoneType] = None, autofocus: bool | str | float | int | None = None, contenteditable: Union[Literal['true', 'plaintext-only', 'false'], str, float, int, bool, NoneType] = None, dir: Union[Literal['ltr', 'rtl', 'auto'], str, float, int, bool, NoneType] = None, draggable: Union[Literal['true', 'false'], str, float, int, bool, NoneType] = None, enterkeyhint: Union[Literal['enter', 'done', 'go', 'next', 'previous', 'search', 'send'], str, float, int, bool, NoneType] = None, hidden: Union[Literal['until-found', 'hidden', ''], str, float, int, bool, NoneType] = None, inert: bool | str | float | int | None = None, inputmode: Union[Literal['none', 'text', 'tel', 'email', 'url', 'numeric', 'decimal', 'search'], str, float, int, bool, NoneType] = None, is_: str | float | int | bool | None = None, itemid: str | float | int | bool | None = None, itemprop: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, itemref: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, itemscope: bool | str | float | int | None = None, itemtype: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, lang: str | float | int | bool | None = None, nonce: str | float | int | bool | None = None, onauxclick: str | float | int | bool | None = None, onbeforeinput: str | float | int | bool | None = None, onbeforematch: str | float | int | bool | None = None, onbeforetoggle: str | float | int | bool | None = None, onblur: str | float | int | bool | None = None, oncancel: str | float | int | bool | None = None, oncanplay: str | float | int | bool | None = None, oncanplaythrough: str | float | int | bool | None = None, onchange: str | float | int | bool | None = None, onclick: str | float | int | bool | None = None, onclose: str | float | int | bool | None = None, oncontextlost: str | float | int | bool | None = None, oncontextmenu: str | float | int | bool | None = None, oncontextrestored: str | float | int | bool | None = None, oncopy: str | float | int | bool | None = None, oncuechange: str | float | int | bool | None = None, oncut: str | float | int | bool | None = None, ondblclick: str | float | int | bool | None = None, ondrag: str | float | int | bool | None = None, ondragend: str | float | int | bool | None = None, ondragenter: str | float | int | bool | None = None, ondragleave: str | float | int | bool | None = None, ondragover: str | float | int | bool | None = None, ondragstart: str | float | int | bool | None = None, ondrop: str | float | int | bool | None = None, ondurationchange: str | float | int | bool | None = None, onemptied: str | float | int | bool | None = None, onended: str | float | int | bool | None = None, onerror: str | float | int | bool | None = None, onfocus: str | float | int | bool | None = None, onformdata: str | float | int | bool | None = None, oninput: str | float | int | bool | None = None, oninvalid: str | float | int | bool | None = None, onkeydown: str | float | int | bool | None = None, onkeypress: str | float | int | bool | None = None, onkeyup: str | float | int | bool | None = None, onload: str | float | int | bool | None = None, onloadeddata: str | float | int | bool | None = None, onloadedmetadata: str | float | int | bool | None = None, onloadstart: str | float | int | bool | None = None, onmousedown: str | float | int | bool | None = None, onmouseenter: str | float | int | bool | None = None, onmouseleave: str | float | int | bool | None = None, onmousemove: str | float | int | bool | None = None, onmouseout: str | float | int | bool | None = None, onmouseover: str | float | int | bool | None = None, onmouseup: str | float | int | bool | None = None, onpaste: str | float | int | bool | None = None, onpause: str | float | int | bool | None = None, onplay: str | float | int | bool | None = None, onplaying: str | float | int | bool | None = None, onprogress: str | float | int | bool | None = None, onratechange: str | float | int | bool | None = None, onreset: str | float | int | bool | None = None, onresize: str | float | int | bool | None = None, onscroll: str | float | int | bool | None = None, onscrollend: str | float | int | bool | None = None, onsecuritypolicyviolation: str | float | int | bool | None = None, onseeked: str | float | int | bool | None = None, onseeking: str | float | int | bool | None = None, onselect: str | float | int | bool | None = None, onslotchange: str | float | int | bool | None = None, onstalled: str | float | int | bool | None = None, onsubmit: str | float | int | bool | None = None, onsuspend: str | float | int | bool | None = None, ontimeupdate: str | float | int | bool | None = None, ontoggle: str | float | int | bool | None = None, onvolumechange: str | float | int | bool | None = None, onwaiting: str | float | int | bool | None = None, onwheel: str | float | int | bool | None = None, popover: Union[Literal['auto', 'manual'], str, float, int, bool, NoneType] = None, slot: str | float | int | bool | None = None, spellcheck: Union[Literal['true', 'false', ''], str, float, int, bool, NoneType] = None, style: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool], Mapping[str | float | int | bool, str | float | int | bool]] = None, tabindex: int | str | float | bool | None = None, title: str | float | int | bool | None = None, translate: Union[Literal['yes', 'no'], str, float, int, bool, NoneType] = None, writingsuggestions: Union[Literal['true', 'false', ''], str, float, int, bool, NoneType] = None, children: list | None = None)
 37    def __init__(
 38        self,
 39        attrs: Iterable[BaseAttribute]
 40        | Mapping[str, Resolvable]
 41        | Iterable[
 42            BaseAttribute | Iterable[BaseAttribute] | Mapping[str, Resolvable]
 43        ]
 44        | None = None,
 45        id: StrLike | None = None,
 46        class_: Resolvable | None = None,
 47        download: StrLike | None = None,
 48        href: StrLike | None = None,
 49        hreflang: StrLike | None = None,
 50        ping: Resolvable | StrLike | None = None,
 51        referrerpolicy: StrLike | None = None,
 52        rel: Resolvable | StrLike | None = None,
 53        target: StrLike | None = None,
 54        type: StrLike | None = None,
 55        accesskey: Resolvable | StrLike | None = None,
 56        autocapitalize: Literal[
 57            "on", "off", "none", "sentences", "words", "characters"
 58        ]
 59        | StrLike
 60        | None = None,
 61        autocorrect: Literal["on", "off"] | StrLike | None = None,
 62        autofocus: bool | StrLike | None = None,
 63        contenteditable: Literal["true", "plaintext-only", "false"]
 64        | StrLike
 65        | None = None,
 66        dir: Literal["ltr", "rtl", "auto"] | StrLike | None = None,
 67        draggable: Literal["true", "false"] | StrLike | None = None,
 68        enterkeyhint: Literal[
 69            "enter", "done", "go", "next", "previous", "search", "send"
 70        ]
 71        | StrLike
 72        | None = None,
 73        hidden: Literal["until-found", "hidden", ""] | StrLike | None = None,
 74        inert: bool | StrLike | None = None,
 75        inputmode: Literal[
 76            "none",
 77            "text",
 78            "tel",
 79            "email",
 80            "url",
 81            "numeric",
 82            "decimal",
 83            "search",
 84        ]
 85        | StrLike
 86        | None = None,
 87        is_: StrLike | None = None,
 88        itemid: StrLike | None = None,
 89        itemprop: Resolvable | StrLike | None = None,
 90        itemref: Resolvable | StrLike | None = None,
 91        itemscope: bool | StrLike | None = None,
 92        itemtype: Resolvable | StrLike | None = None,
 93        lang: StrLike | None = None,
 94        nonce: StrLike | None = None,
 95        onauxclick: StrLike | None = None,
 96        onbeforeinput: StrLike | None = None,
 97        onbeforematch: StrLike | None = None,
 98        onbeforetoggle: StrLike | None = None,
 99        onblur: StrLike | None = None,
100        oncancel: StrLike | None = None,
101        oncanplay: StrLike | None = None,
102        oncanplaythrough: StrLike | None = None,
103        onchange: StrLike | None = None,
104        onclick: StrLike | None = None,
105        onclose: StrLike | None = None,
106        oncontextlost: StrLike | None = None,
107        oncontextmenu: StrLike | None = None,
108        oncontextrestored: StrLike | None = None,
109        oncopy: StrLike | None = None,
110        oncuechange: StrLike | None = None,
111        oncut: StrLike | None = None,
112        ondblclick: StrLike | None = None,
113        ondrag: StrLike | None = None,
114        ondragend: StrLike | None = None,
115        ondragenter: StrLike | None = None,
116        ondragleave: StrLike | None = None,
117        ondragover: StrLike | None = None,
118        ondragstart: StrLike | None = None,
119        ondrop: StrLike | None = None,
120        ondurationchange: StrLike | None = None,
121        onemptied: StrLike | None = None,
122        onended: StrLike | None = None,
123        onerror: StrLike | None = None,
124        onfocus: StrLike | None = None,
125        onformdata: StrLike | None = None,
126        oninput: StrLike | None = None,
127        oninvalid: StrLike | None = None,
128        onkeydown: StrLike | None = None,
129        onkeypress: StrLike | None = None,
130        onkeyup: StrLike | None = None,
131        onload: StrLike | None = None,
132        onloadeddata: StrLike | None = None,
133        onloadedmetadata: StrLike | None = None,
134        onloadstart: StrLike | None = None,
135        onmousedown: StrLike | None = None,
136        onmouseenter: StrLike | None = None,
137        onmouseleave: StrLike | None = None,
138        onmousemove: StrLike | None = None,
139        onmouseout: StrLike | None = None,
140        onmouseover: StrLike | None = None,
141        onmouseup: StrLike | None = None,
142        onpaste: StrLike | None = None,
143        onpause: StrLike | None = None,
144        onplay: StrLike | None = None,
145        onplaying: StrLike | None = None,
146        onprogress: StrLike | None = None,
147        onratechange: StrLike | None = None,
148        onreset: StrLike | None = None,
149        onresize: StrLike | None = None,
150        onscroll: StrLike | None = None,
151        onscrollend: StrLike | None = None,
152        onsecuritypolicyviolation: StrLike | None = None,
153        onseeked: StrLike | None = None,
154        onseeking: StrLike | None = None,
155        onselect: StrLike | None = None,
156        onslotchange: StrLike | None = None,
157        onstalled: StrLike | None = None,
158        onsubmit: StrLike | None = None,
159        onsuspend: StrLike | None = None,
160        ontimeupdate: StrLike | None = None,
161        ontoggle: StrLike | None = None,
162        onvolumechange: StrLike | None = None,
163        onwaiting: StrLike | None = None,
164        onwheel: StrLike | None = None,
165        popover: Literal["auto", "manual"] | StrLike | None = None,
166        slot: StrLike | None = None,
167        spellcheck: Literal["true", "false", ""] | StrLike | None = None,
168        style: Resolvable | Mapping[StrLike, StrLike] | None = None,
169        tabindex: int | StrLike | None = None,
170        title: StrLike | None = None,
171        translate: Literal["yes", "no"] | StrLike | None = None,
172        writingsuggestions: Literal["true", "false", ""]
173        | StrLike
174        | None = None,
175        children: list | None = None,
176    ) -> None:
177        """
178        Initialize 'a' (Hyperlink) element.  
179        Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
180
181        Args:
182            attrs: 
183                A list or dictionary of attributes for the element
184            
185            id:
186                The element's ID
187            
188            class_:
189                Classes to which the element belongs
190            
191            download:
192                Whether to download the resource instead of navigating to it, and its filename if so
193            
194            href:
195                Address of the hyperlink.  
196                Value hint: Valid URL potentially surrounded by spaces
197            
198            hreflang:
199                Language of the linked resource.  
200                Value hint: Valid BCP 47 language tag
201            
202            ping:
203                URLs to ping
204            
205            referrerpolicy:
206                Referrer policy for fetches initiated by the element.  
207                Value hint: Referrer policy
208            
209            rel:
210                Relationship between the location in the document containing the hyperlink and the destination resource
211            
212            target:
213                Navigable for hyperlink navigation.  
214                Value hint: Valid navigable target name or keyword
215            
216            type:
217                Hint for the type of the referenced resource.  
218                Value hint: Valid MIME type string
219            
220            accesskey:
221                Keyboard shortcut to activate or focus element
222            
223            autocapitalize:
224                Recommended autocapitalization behavior (for supported input methods)
225            
226            autocorrect:
227                Recommended autocorrection behavior (for supported input methods)
228            
229            autofocus:
230                Automatically focus the element when the page is loaded
231            
232            contenteditable:
233                Whether the element is editable
234            
235            dir:
236                The text directionality of the element
237            
238            draggable:
239                Whether the element is draggable
240            
241            enterkeyhint:
242                Hint for selecting an enter key action
243            
244            hidden:
245                Whether the element is relevant
246            
247            inert:
248                Whether the element is inert.
249            
250            inputmode:
251                Hint for selecting an input modality
252            
253            is_:
254                Creates a customized built-in element.  
255                Value hint: Valid custom element name of a defined customized built-in element
256            
257            itemid:
258                Global identifier for a microdata item.  
259                Value hint: Valid URL potentially surrounded by spaces
260            
261            itemprop:
262                Property names of a microdata item
263            
264            itemref:
265                Referenced elements
266            
267            itemscope:
268                Introduces a microdata item
269            
270            itemtype:
271                Item types of a microdata item
272            
273            lang:
274                Language of the element.  
275                Value hint: Valid BCP 47 language tag or the empty string
276            
277            nonce:
278                Cryptographic nonce used in Content Security Policy checks [CSP]
279            
280            onauxclick:
281                auxclick event handler.  
282                Value hint: Event handler content attribute
283            
284            onbeforeinput:
285                beforeinput event handler.  
286                Value hint: Event handler content attribute
287            
288            onbeforematch:
289                beforematch event handler.  
290                Value hint: Event handler content attribute
291            
292            onbeforetoggle:
293                beforetoggle event handler.  
294                Value hint: Event handler content attribute
295            
296            onblur:
297                blur event handler.  
298                Value hint: Event handler content attribute
299            
300            oncancel:
301                cancel event handler.  
302                Value hint: Event handler content attribute
303            
304            oncanplay:
305                canplay event handler.  
306                Value hint: Event handler content attribute
307            
308            oncanplaythrough:
309                canplaythrough event handler.  
310                Value hint: Event handler content attribute
311            
312            onchange:
313                change event handler.  
314                Value hint: Event handler content attribute
315            
316            onclick:
317                click event handler.  
318                Value hint: Event handler content attribute
319            
320            onclose:
321                close event handler.  
322                Value hint: Event handler content attribute
323            
324            oncontextlost:
325                contextlost event handler.  
326                Value hint: Event handler content attribute
327            
328            oncontextmenu:
329                contextmenu event handler.  
330                Value hint: Event handler content attribute
331            
332            oncontextrestored:
333                contextrestored event handler.  
334                Value hint: Event handler content attribute
335            
336            oncopy:
337                copy event handler.  
338                Value hint: Event handler content attribute
339            
340            oncuechange:
341                cuechange event handler.  
342                Value hint: Event handler content attribute
343            
344            oncut:
345                cut event handler.  
346                Value hint: Event handler content attribute
347            
348            ondblclick:
349                dblclick event handler.  
350                Value hint: Event handler content attribute
351            
352            ondrag:
353                drag event handler.  
354                Value hint: Event handler content attribute
355            
356            ondragend:
357                dragend event handler.  
358                Value hint: Event handler content attribute
359            
360            ondragenter:
361                dragenter event handler.  
362                Value hint: Event handler content attribute
363            
364            ondragleave:
365                dragleave event handler.  
366                Value hint: Event handler content attribute
367            
368            ondragover:
369                dragover event handler.  
370                Value hint: Event handler content attribute
371            
372            ondragstart:
373                dragstart event handler.  
374                Value hint: Event handler content attribute
375            
376            ondrop:
377                drop event handler.  
378                Value hint: Event handler content attribute
379            
380            ondurationchange:
381                durationchange event handler.  
382                Value hint: Event handler content attribute
383            
384            onemptied:
385                emptied event handler.  
386                Value hint: Event handler content attribute
387            
388            onended:
389                ended event handler.  
390                Value hint: Event handler content attribute
391            
392            onerror:
393                error event handler.  
394                Value hint: Event handler content attribute
395            
396            onfocus:
397                focus event handler.  
398                Value hint: Event handler content attribute
399            
400            onformdata:
401                formdata event handler.  
402                Value hint: Event handler content attribute
403            
404            oninput:
405                input event handler.  
406                Value hint: Event handler content attribute
407            
408            oninvalid:
409                invalid event handler.  
410                Value hint: Event handler content attribute
411            
412            onkeydown:
413                keydown event handler.  
414                Value hint: Event handler content attribute
415            
416            onkeypress:
417                keypress event handler.  
418                Value hint: Event handler content attribute
419            
420            onkeyup:
421                keyup event handler.  
422                Value hint: Event handler content attribute
423            
424            onload:
425                load event handler.  
426                Value hint: Event handler content attribute
427            
428            onloadeddata:
429                loadeddata event handler.  
430                Value hint: Event handler content attribute
431            
432            onloadedmetadata:
433                loadedmetadata event handler.  
434                Value hint: Event handler content attribute
435            
436            onloadstart:
437                loadstart event handler.  
438                Value hint: Event handler content attribute
439            
440            onmousedown:
441                mousedown event handler.  
442                Value hint: Event handler content attribute
443            
444            onmouseenter:
445                mouseenter event handler.  
446                Value hint: Event handler content attribute
447            
448            onmouseleave:
449                mouseleave event handler.  
450                Value hint: Event handler content attribute
451            
452            onmousemove:
453                mousemove event handler.  
454                Value hint: Event handler content attribute
455            
456            onmouseout:
457                mouseout event handler.  
458                Value hint: Event handler content attribute
459            
460            onmouseover:
461                mouseover event handler.  
462                Value hint: Event handler content attribute
463            
464            onmouseup:
465                mouseup event handler.  
466                Value hint: Event handler content attribute
467            
468            onpaste:
469                paste event handler.  
470                Value hint: Event handler content attribute
471            
472            onpause:
473                pause event handler.  
474                Value hint: Event handler content attribute
475            
476            onplay:
477                play event handler.  
478                Value hint: Event handler content attribute
479            
480            onplaying:
481                playing event handler.  
482                Value hint: Event handler content attribute
483            
484            onprogress:
485                progress event handler.  
486                Value hint: Event handler content attribute
487            
488            onratechange:
489                ratechange event handler.  
490                Value hint: Event handler content attribute
491            
492            onreset:
493                reset event handler.  
494                Value hint: Event handler content attribute
495            
496            onresize:
497                resize event handler.  
498                Value hint: Event handler content attribute
499            
500            onscroll:
501                scroll event handler.  
502                Value hint: Event handler content attribute
503            
504            onscrollend:
505                scrollend event handler.  
506                Value hint: Event handler content attribute
507            
508            onsecuritypolicyviolation:
509                securitypolicyviolation event handler.  
510                Value hint: Event handler content attribute
511            
512            onseeked:
513                seeked event handler.  
514                Value hint: Event handler content attribute
515            
516            onseeking:
517                seeking event handler.  
518                Value hint: Event handler content attribute
519            
520            onselect:
521                select event handler.  
522                Value hint: Event handler content attribute
523            
524            onslotchange:
525                slotchange event handler.  
526                Value hint: Event handler content attribute
527            
528            onstalled:
529                stalled event handler.  
530                Value hint: Event handler content attribute
531            
532            onsubmit:
533                submit event handler.  
534                Value hint: Event handler content attribute
535            
536            onsuspend:
537                suspend event handler.  
538                Value hint: Event handler content attribute
539            
540            ontimeupdate:
541                timeupdate event handler.  
542                Value hint: Event handler content attribute
543            
544            ontoggle:
545                toggle event handler.  
546                Value hint: Event handler content attribute
547            
548            onvolumechange:
549                volumechange event handler.  
550                Value hint: Event handler content attribute
551            
552            onwaiting:
553                waiting event handler.  
554                Value hint: Event handler content attribute
555            
556            onwheel:
557                wheel event handler.  
558                Value hint: Event handler content attribute
559            
560            popover:
561                Makes the element a popover element
562            
563            slot:
564                The element's desired slot
565            
566            spellcheck:
567                Whether the element is to have its spelling and grammar checked
568            
569            style:
570                Presentational and formatting instructions.  
571                Value hint: CSS declarations*
572            
573            tabindex:
574                Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation
575            
576            title:
577                Advisory information for the element
578            
579            translate:
580                Whether the element is to be translated when the page is localized
581            
582            writingsuggestions:
583                Whether the element can offer writing suggestions or not.
584            
585        """  # fmt: skip
586        super().__init__(
587            "a", void_element=False, attrs=attrs, children=children
588        )
589        if not (id is None or id is False):
590            self._process_attr("id", id)
591        if not (class_ is None or class_ is False):
592            self._process_attr("class", class_)
593        if not (download is None or download is False):
594            self._process_attr("download", download)
595        if not (href is None or href is False):
596            self._process_attr("href", href)
597        if not (hreflang is None or hreflang is False):
598            self._process_attr("hreflang", hreflang)
599        if not (ping is None or ping is False):
600            self._process_attr("ping", ping)
601        if not (referrerpolicy is None or referrerpolicy is False):
602            self._process_attr("referrerpolicy", referrerpolicy)
603        if not (rel is None or rel is False):
604            self._process_attr("rel", rel)
605        if not (target is None or target is False):
606            self._process_attr("target", target)
607        if not (type is None or type is False):
608            self._process_attr("type", type)
609        if not (accesskey is None or accesskey is False):
610            self._process_attr("accesskey", accesskey)
611        if not (autocapitalize is None or autocapitalize is False):
612            self._process_attr("autocapitalize", autocapitalize)
613        if not (autocorrect is None or autocorrect is False):
614            self._process_attr("autocorrect", autocorrect)
615        if not (autofocus is None or autofocus is False):
616            self._process_attr("autofocus", autofocus)
617        if not (contenteditable is None or contenteditable is False):
618            self._process_attr("contenteditable", contenteditable)
619        if not (dir is None or dir is False):
620            self._process_attr("dir", dir)
621        if not (draggable is None or draggable is False):
622            self._process_attr("draggable", draggable)
623        if not (enterkeyhint is None or enterkeyhint is False):
624            self._process_attr("enterkeyhint", enterkeyhint)
625        if not (hidden is None or hidden is False):
626            self._process_attr("hidden", hidden)
627        if not (inert is None or inert is False):
628            self._process_attr("inert", inert)
629        if not (inputmode is None or inputmode is False):
630            self._process_attr("inputmode", inputmode)
631        if not (is_ is None or is_ is False):
632            self._process_attr("is", is_)
633        if not (itemid is None or itemid is False):
634            self._process_attr("itemid", itemid)
635        if not (itemprop is None or itemprop is False):
636            self._process_attr("itemprop", itemprop)
637        if not (itemref is None or itemref is False):
638            self._process_attr("itemref", itemref)
639        if not (itemscope is None or itemscope is False):
640            self._process_attr("itemscope", itemscope)
641        if not (itemtype is None or itemtype is False):
642            self._process_attr("itemtype", itemtype)
643        if not (lang is None or lang is False):
644            self._process_attr("lang", lang)
645        if not (nonce is None or nonce is False):
646            self._process_attr("nonce", nonce)
647        if not (onauxclick is None or onauxclick is False):
648            self._process_attr("onauxclick", onauxclick)
649        if not (onbeforeinput is None or onbeforeinput is False):
650            self._process_attr("onbeforeinput", onbeforeinput)
651        if not (onbeforematch is None or onbeforematch is False):
652            self._process_attr("onbeforematch", onbeforematch)
653        if not (onbeforetoggle is None or onbeforetoggle is False):
654            self._process_attr("onbeforetoggle", onbeforetoggle)
655        if not (onblur is None or onblur is False):
656            self._process_attr("onblur", onblur)
657        if not (oncancel is None or oncancel is False):
658            self._process_attr("oncancel", oncancel)
659        if not (oncanplay is None or oncanplay is False):
660            self._process_attr("oncanplay", oncanplay)
661        if not (oncanplaythrough is None or oncanplaythrough is False):
662            self._process_attr("oncanplaythrough", oncanplaythrough)
663        if not (onchange is None or onchange is False):
664            self._process_attr("onchange", onchange)
665        if not (onclick is None or onclick is False):
666            self._process_attr("onclick", onclick)
667        if not (onclose is None or onclose is False):
668            self._process_attr("onclose", onclose)
669        if not (oncontextlost is None or oncontextlost is False):
670            self._process_attr("oncontextlost", oncontextlost)
671        if not (oncontextmenu is None or oncontextmenu is False):
672            self._process_attr("oncontextmenu", oncontextmenu)
673        if not (oncontextrestored is None or oncontextrestored is False):
674            self._process_attr("oncontextrestored", oncontextrestored)
675        if not (oncopy is None or oncopy is False):
676            self._process_attr("oncopy", oncopy)
677        if not (oncuechange is None or oncuechange is False):
678            self._process_attr("oncuechange", oncuechange)
679        if not (oncut is None or oncut is False):
680            self._process_attr("oncut", oncut)
681        if not (ondblclick is None or ondblclick is False):
682            self._process_attr("ondblclick", ondblclick)
683        if not (ondrag is None or ondrag is False):
684            self._process_attr("ondrag", ondrag)
685        if not (ondragend is None or ondragend is False):
686            self._process_attr("ondragend", ondragend)
687        if not (ondragenter is None or ondragenter is False):
688            self._process_attr("ondragenter", ondragenter)
689        if not (ondragleave is None or ondragleave is False):
690            self._process_attr("ondragleave", ondragleave)
691        if not (ondragover is None or ondragover is False):
692            self._process_attr("ondragover", ondragover)
693        if not (ondragstart is None or ondragstart is False):
694            self._process_attr("ondragstart", ondragstart)
695        if not (ondrop is None or ondrop is False):
696            self._process_attr("ondrop", ondrop)
697        if not (ondurationchange is None or ondurationchange is False):
698            self._process_attr("ondurationchange", ondurationchange)
699        if not (onemptied is None or onemptied is False):
700            self._process_attr("onemptied", onemptied)
701        if not (onended is None or onended is False):
702            self._process_attr("onended", onended)
703        if not (onerror is None or onerror is False):
704            self._process_attr("onerror", onerror)
705        if not (onfocus is None or onfocus is False):
706            self._process_attr("onfocus", onfocus)
707        if not (onformdata is None or onformdata is False):
708            self._process_attr("onformdata", onformdata)
709        if not (oninput is None or oninput is False):
710            self._process_attr("oninput", oninput)
711        if not (oninvalid is None or oninvalid is False):
712            self._process_attr("oninvalid", oninvalid)
713        if not (onkeydown is None or onkeydown is False):
714            self._process_attr("onkeydown", onkeydown)
715        if not (onkeypress is None or onkeypress is False):
716            self._process_attr("onkeypress", onkeypress)
717        if not (onkeyup is None or onkeyup is False):
718            self._process_attr("onkeyup", onkeyup)
719        if not (onload is None or onload is False):
720            self._process_attr("onload", onload)
721        if not (onloadeddata is None or onloadeddata is False):
722            self._process_attr("onloadeddata", onloadeddata)
723        if not (onloadedmetadata is None or onloadedmetadata is False):
724            self._process_attr("onloadedmetadata", onloadedmetadata)
725        if not (onloadstart is None or onloadstart is False):
726            self._process_attr("onloadstart", onloadstart)
727        if not (onmousedown is None or onmousedown is False):
728            self._process_attr("onmousedown", onmousedown)
729        if not (onmouseenter is None or onmouseenter is False):
730            self._process_attr("onmouseenter", onmouseenter)
731        if not (onmouseleave is None or onmouseleave is False):
732            self._process_attr("onmouseleave", onmouseleave)
733        if not (onmousemove is None or onmousemove is False):
734            self._process_attr("onmousemove", onmousemove)
735        if not (onmouseout is None or onmouseout is False):
736            self._process_attr("onmouseout", onmouseout)
737        if not (onmouseover is None or onmouseover is False):
738            self._process_attr("onmouseover", onmouseover)
739        if not (onmouseup is None or onmouseup is False):
740            self._process_attr("onmouseup", onmouseup)
741        if not (onpaste is None or onpaste is False):
742            self._process_attr("onpaste", onpaste)
743        if not (onpause is None or onpause is False):
744            self._process_attr("onpause", onpause)
745        if not (onplay is None or onplay is False):
746            self._process_attr("onplay", onplay)
747        if not (onplaying is None or onplaying is False):
748            self._process_attr("onplaying", onplaying)
749        if not (onprogress is None or onprogress is False):
750            self._process_attr("onprogress", onprogress)
751        if not (onratechange is None or onratechange is False):
752            self._process_attr("onratechange", onratechange)
753        if not (onreset is None or onreset is False):
754            self._process_attr("onreset", onreset)
755        if not (onresize is None or onresize is False):
756            self._process_attr("onresize", onresize)
757        if not (onscroll is None or onscroll is False):
758            self._process_attr("onscroll", onscroll)
759        if not (onscrollend is None or onscrollend is False):
760            self._process_attr("onscrollend", onscrollend)
761        if not (
762            onsecuritypolicyviolation is None
763            or onsecuritypolicyviolation is False
764        ):
765            self._process_attr(
766                "onsecuritypolicyviolation", onsecuritypolicyviolation
767            )
768        if not (onseeked is None or onseeked is False):
769            self._process_attr("onseeked", onseeked)
770        if not (onseeking is None or onseeking is False):
771            self._process_attr("onseeking", onseeking)
772        if not (onselect is None or onselect is False):
773            self._process_attr("onselect", onselect)
774        if not (onslotchange is None or onslotchange is False):
775            self._process_attr("onslotchange", onslotchange)
776        if not (onstalled is None or onstalled is False):
777            self._process_attr("onstalled", onstalled)
778        if not (onsubmit is None or onsubmit is False):
779            self._process_attr("onsubmit", onsubmit)
780        if not (onsuspend is None or onsuspend is False):
781            self._process_attr("onsuspend", onsuspend)
782        if not (ontimeupdate is None or ontimeupdate is False):
783            self._process_attr("ontimeupdate", ontimeupdate)
784        if not (ontoggle is None or ontoggle is False):
785            self._process_attr("ontoggle", ontoggle)
786        if not (onvolumechange is None or onvolumechange is False):
787            self._process_attr("onvolumechange", onvolumechange)
788        if not (onwaiting is None or onwaiting is False):
789            self._process_attr("onwaiting", onwaiting)
790        if not (onwheel is None or onwheel is False):
791            self._process_attr("onwheel", onwheel)
792        if not (popover is None or popover is False):
793            self._process_attr("popover", popover)
794        if not (slot is None or slot is False):
795            self._process_attr("slot", slot)
796        if not (spellcheck is None or spellcheck is False):
797            self._process_attr("spellcheck", spellcheck)
798        if not (style is None or style is False):
799            self._process_attr("style", style)
800        if not (tabindex is None or tabindex is False):
801            self._process_attr("tabindex", tabindex)
802        if not (title is None or title is False):
803            self._process_attr("title", title)
804        if not (translate is None or translate is False):
805            self._process_attr("translate", translate)
806        if not (writingsuggestions is None or writingsuggestions is False):
807            self._process_attr("writingsuggestions", writingsuggestions)

Initialize 'a' (Hyperlink) element.
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

Args: attrs: A list or dictionary of attributes for the element

id:
    The element's ID

class_:
    Classes to which the element belongs

download:
    Whether to download the resource instead of navigating to it, and its filename if so

href:
    Address of the hyperlink.  
    Value hint: Valid URL potentially surrounded by spaces

hreflang:
    Language of the linked resource.  
    Value hint: Valid BCP 47 language tag

ping:
    URLs to ping

referrerpolicy:
    Referrer policy for fetches initiated by the element.  
    Value hint: Referrer policy

rel:
    Relationship between the location in the document containing the hyperlink and the destination resource

target:
    Navigable for hyperlink navigation.  
    Value hint: Valid navigable target name or keyword

type:
    Hint for the type of the referenced resource.  
    Value hint: Valid MIME type string

accesskey:
    Keyboard shortcut to activate or focus element

autocapitalize:
    Recommended autocapitalization behavior (for supported input methods)

autocorrect:
    Recommended autocorrection behavior (for supported input methods)

autofocus:
    Automatically focus the element when the page is loaded

contenteditable:
    Whether the element is editable

dir:
    The text directionality of the element

draggable:
    Whether the element is draggable

enterkeyhint:
    Hint for selecting an enter key action

hidden:
    Whether the element is relevant

inert:
    Whether the element is inert.

inputmode:
    Hint for selecting an input modality

is_:
    Creates a customized built-in element.  
    Value hint: Valid custom element name of a defined customized built-in element

itemid:
    Global identifier for a microdata item.  
    Value hint: Valid URL potentially surrounded by spaces

itemprop:
    Property names of a microdata item

itemref:
    Referenced elements

itemscope:
    Introduces a microdata item

itemtype:
    Item types of a microdata item

lang:
    Language of the element.  
    Value hint: Valid BCP 47 language tag or the empty string

nonce:
    Cryptographic nonce used in Content Security Policy checks [CSP]

onauxclick:
    auxclick event handler.  
    Value hint: Event handler content attribute

onbeforeinput:
    beforeinput event handler.  
    Value hint: Event handler content attribute

onbeforematch:
    beforematch event handler.  
    Value hint: Event handler content attribute

onbeforetoggle:
    beforetoggle event handler.  
    Value hint: Event handler content attribute

onblur:
    blur event handler.  
    Value hint: Event handler content attribute

oncancel:
    cancel event handler.  
    Value hint: Event handler content attribute

oncanplay:
    canplay event handler.  
    Value hint: Event handler content attribute

oncanplaythrough:
    canplaythrough event handler.  
    Value hint: Event handler content attribute

onchange:
    change event handler.  
    Value hint: Event handler content attribute

onclick:
    click event handler.  
    Value hint: Event handler content attribute

onclose:
    close event handler.  
    Value hint: Event handler content attribute

oncontextlost:
    contextlost event handler.  
    Value hint: Event handler content attribute

oncontextmenu:
    contextmenu event handler.  
    Value hint: Event handler content attribute

oncontextrestored:
    contextrestored event handler.  
    Value hint: Event handler content attribute

oncopy:
    copy event handler.  
    Value hint: Event handler content attribute

oncuechange:
    cuechange event handler.  
    Value hint: Event handler content attribute

oncut:
    cut event handler.  
    Value hint: Event handler content attribute

ondblclick:
    dblclick event handler.  
    Value hint: Event handler content attribute

ondrag:
    drag event handler.  
    Value hint: Event handler content attribute

ondragend:
    dragend event handler.  
    Value hint: Event handler content attribute

ondragenter:
    dragenter event handler.  
    Value hint: Event handler content attribute

ondragleave:
    dragleave event handler.  
    Value hint: Event handler content attribute

ondragover:
    dragover event handler.  
    Value hint: Event handler content attribute

ondragstart:
    dragstart event handler.  
    Value hint: Event handler content attribute

ondrop:
    drop event handler.  
    Value hint: Event handler content attribute

ondurationchange:
    durationchange event handler.  
    Value hint: Event handler content attribute

onemptied:
    emptied event handler.  
    Value hint: Event handler content attribute

onended:
    ended event handler.  
    Value hint: Event handler content attribute

onerror:
    error event handler.  
    Value hint: Event handler content attribute

onfocus:
    focus event handler.  
    Value hint: Event handler content attribute

onformdata:
    formdata event handler.  
    Value hint: Event handler content attribute

oninput:
    input event handler.  
    Value hint: Event handler content attribute

oninvalid:
    invalid event handler.  
    Value hint: Event handler content attribute

onkeydown:
    keydown event handler.  
    Value hint: Event handler content attribute

onkeypress:
    keypress event handler.  
    Value hint: Event handler content attribute

onkeyup:
    keyup event handler.  
    Value hint: Event handler content attribute

onload:
    load event handler.  
    Value hint: Event handler content attribute

onloadeddata:
    loadeddata event handler.  
    Value hint: Event handler content attribute

onloadedmetadata:
    loadedmetadata event handler.  
    Value hint: Event handler content attribute

onloadstart:
    loadstart event handler.  
    Value hint: Event handler content attribute

onmousedown:
    mousedown event handler.  
    Value hint: Event handler content attribute

onmouseenter:
    mouseenter event handler.  
    Value hint: Event handler content attribute

onmouseleave:
    mouseleave event handler.  
    Value hint: Event handler content attribute

onmousemove:
    mousemove event handler.  
    Value hint: Event handler content attribute

onmouseout:
    mouseout event handler.  
    Value hint: Event handler content attribute

onmouseover:
    mouseover event handler.  
    Value hint: Event handler content attribute

onmouseup:
    mouseup event handler.  
    Value hint: Event handler content attribute

onpaste:
    paste event handler.  
    Value hint: Event handler content attribute

onpause:
    pause event handler.  
    Value hint: Event handler content attribute

onplay:
    play event handler.  
    Value hint: Event handler content attribute

onplaying:
    playing event handler.  
    Value hint: Event handler content attribute

onprogress:
    progress event handler.  
    Value hint: Event handler content attribute

onratechange:
    ratechange event handler.  
    Value hint: Event handler content attribute

onreset:
    reset event handler.  
    Value hint: Event handler content attribute

onresize:
    resize event handler.  
    Value hint: Event handler content attribute

onscroll:
    scroll event handler.  
    Value hint: Event handler content attribute

onscrollend:
    scrollend event handler.  
    Value hint: Event handler content attribute

onsecuritypolicyviolation:
    securitypolicyviolation event handler.  
    Value hint: Event handler content attribute

onseeked:
    seeked event handler.  
    Value hint: Event handler content attribute

onseeking:
    seeking event handler.  
    Value hint: Event handler content attribute

onselect:
    select event handler.  
    Value hint: Event handler content attribute

onslotchange:
    slotchange event handler.  
    Value hint: Event handler content attribute

onstalled:
    stalled event handler.  
    Value hint: Event handler content attribute

onsubmit:
    submit event handler.  
    Value hint: Event handler content attribute

onsuspend:
    suspend event handler.  
    Value hint: Event handler content attribute

ontimeupdate:
    timeupdate event handler.  
    Value hint: Event handler content attribute

ontoggle:
    toggle event handler.  
    Value hint: Event handler content attribute

onvolumechange:
    volumechange event handler.  
    Value hint: Event handler content attribute

onwaiting:
    waiting event handler.  
    Value hint: Event handler content attribute

onwheel:
    wheel event handler.  
    Value hint: Event handler content attribute

popover:
    Makes the element a popover element

slot:
    The element's desired slot

spellcheck:
    Whether the element is to have its spelling and grammar checked

style:
    Presentational and formatting instructions.  
    Value hint: CSS declarations*

tabindex:
    Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation

title:
    Advisory information for the element

translate:
    Whether the element is to be translated when the page is localized

writingsuggestions:
    Whether the element can offer writing suggestions or not.
tag = 'a'
categories = ['flow', 'phrasing*', 'interactive', 'palpable']
26    class hint(GlobalAttrs, AnchorAttrs):
27        """
28        Type hints for "a" attrs  
29        This class holds functions which return BaseAttributes  
30        Which you can add to your element attrs  
31        """  # fmt: skip
32
33        pass

Type hints for "a" attrs
This class holds functions which return BaseAttributes
Which you can add to your element attrs