html_compose.elements.area_element

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

The 'area' element.
Description: Hyperlink or dead area on an image map
Categories: flow phrasing
Parents: phrasing*
Children: empty
Interface: HTMLAreaElement
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area

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

Initialize 'area' (Hyperlink or dead area on an image map) element.
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area

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

id:
    The element's ID

class_:
    Classes to which the element belongs

alt:
    Replacement text for use when images are not available

coords:
    Coordinates for the shape to be created in an image map.  
    Value hint: Valid list of floating-point numbers*

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

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

shape:
    The kind of shape to be created in an image map

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

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 = 'area'
categories = ['flow', 'phrasing']
26    class hint(GlobalAttrs, AreaAttrs):
27        """
28        Type hints for "area" 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 "area" attrs
This class holds functions which return BaseAttributes
Which you can add to your element attrs