html_compose.elements.p_element

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

The 'p' element.
Description: Paragraph
Categories: flow palpable
Parents: flow
Children: phrasing
Interface: HTMLParagraphElement
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p

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

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

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

id:
    The element's ID

class_:
    Classes to which the element belongs

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