htmdart library
Htmdart
Classes
- $aria
- $hx
- Attribute
- AttributeMarkupComponent
- EscapedAttributeMarkupComponent
- HtmlRenderer
- HX
- HTMX Header reference
- Raw
- RawAttribute
- The content will not be escaped, this is useful when using JS inside events ! It should only be used with static content and not with user input
- RawAttributeMarkupComponent
- Request
- An HTTP request to be processed by a Shelf application.
- Response
- The response returned by a Handler.
- Router
- Server
- An adapter with a concrete URL.
- Tag
- TagMarkupComponent
Extensions
Constants
- $_ → const RawAttribute
- $accept → const Attribute
- List of types the server accepts, typically a file type.
- $acceptCharset → const Attribute
- The character set, which if provided must be "UTF-8".
- $acceptcharset → const Attribute
- $accesskey → const Attribute
- Keyboard shortcut to activate or add focus to the element.
- $action → const Attribute
- The URI of a program that processes the information submitted via the form.
- $align → const Attribute
- Specifies the horizontal alignment of the element.
- $allow → const Attribute
- Specifies a feature-policy for the iframe.
- $alt → const Attribute
- Alternative text in case an image can't be displayed.
- $anchor → const Attribute
-
Associates a positioned element with an anchor element. The attribute’s value is the
idof the element to anchor to, enabling CSS anchor positioning. - $as → const Attribute
- Specifies the type of content being loaded by the link.
- $async → const Attribute
- Executes the script asynchronously.
- $autocapitalize → const Attribute
- Sets whether input is automatically capitalized when entered by user.
- $autocomplete → const Attribute
- Indicates whether controls in this form can by default have their values automatically completed by the browser.
- $autocorrect → const Attribute
-
Controls whether input text is automatically corrected for spelling errors. This applies to editable text except on
<input>elements with type "password", "email", or "url". - $autofocus → const Attribute
-
Indicates that an element is to be focused on page load, or as soon as the
<dialog>it is part of is displayed. This boolean attribute is initially false. - $autoplay → const Attribute
- The audio or video should play as soon as possible.
- $background → const Attribute
- Specifies the URL of an image file. Note: Although browsers and email clients may still support this attribute, it is obsolete. Use CSS background-image instead.
- $border → const Attribute
- The border width. Note: This is a legacy attribute. Please use the CSS border property instead.
- $capture → const Attribute
- From the Media Capture specification, specifies a new file can be captured.
- $charset → const Attribute
- Declares the character encoding of the page or script.
- $checked → const Attribute
- Indicates whether the element should be checked on page load.
- $cite → const Attribute
- Contains a URI which points to the source of the quote or change.
- $class → const Attribute
- Often used with CSS to style elements with common properties.
- $color → const Attribute
- This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead.
- $cols → const Attribute
- Defines the number of columns in a textarea.
- $colspan → const Attribute
- The colspan attribute defines the number of columns a cell should span.
- $content → const Attribute
- A value associated with http-equiv or name depending on the context.
- $contenteditable → const Attribute
- Indicates whether the element's content is editable.
- $controls → const Attribute
- Indicates whether the browser should show playback controls to the user.
- $coords → const Attribute
- A set of values specifying the coordinates of the hot-spot region.
- $crossorigin → const Attribute
- How the element handles cross-origin requests.
- $csp → const Attribute
- Specifies the Content Security Policy that an embedded document must agree to enforce upon itself.
- $data → const Attribute
- Specifies the URL of the resource.
- $datetime → const Attribute
- Indicates the date and time associated with the element.
- $decoding → const Attribute
- Indicates the preferred method to decode the image.
- $default → const Attribute
- Indicates that the track should be enabled unless the user's preferences indicate something different.
- $defer → const Attribute
- Indicates that the script should be executed after the page has been parsed.
- $dir → const Attribute
- Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left).
- $dirname → const Attribute
- $disabled → const Attribute
- Indicates whether the user can interact with the element.
- $download → const Attribute
- Indicates that the hyperlink is to be used for downloading a resource.
- $draggable → const Attribute
- Defines whether the element can be dragged.
- $enctype → const Attribute
- Defines the content type of the form data when the method is POST.
- $enterkeyhint → const Attribute
- The enterkeyhint specifies what action label (or icon) to present for the enter key on virtual keyboards. The attribute can be used with form controls or in elements in an editing host.
- $exportparts → const Attribute
- Used to transitively export shadow parts from a nested shadow tree into a containing light tree.
- $for → const Attribute
- Describes elements which belongs to this one.
- $form → const Attribute
- Indicates the form that is the owner of the element.
- $formaction → const Attribute
- Indicates the action of the element, overriding the action defined in the form.
- $formenctype → const Attribute
- If the button/input is a submit button, this attribute sets the encoding type to use during form submission. If this attribute is specified, it overrides the enctype attribute of the button's form owner.
- $formmethod → const Attribute
- If the button/input is a submit button, this attribute sets the submission method to use during form submission (GET, POST, etc.). If this attribute is specified, it overrides the method attribute of the button's form owner.
- $formnovalidate → const Attribute
- If the button/input is a submit button, this boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the novalidate attribute of the button's form owner.
- $formtarget → const Attribute
- If the button/input is a submit button, this attribute specifies the browsing context in which to display the response that is received after submitting the form. If this attribute is specified, it overrides the target attribute of the button's form owner.
- $headers → const Attribute
- IDs of the elements which applies to this element.
- $height → const Attribute
- Specifies the height of elements listed here. For all other elements, use the CSS height property. Note: In some instances, such as
- Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
- $high → const Attribute
- Indicates the lower bound of the upper range.
- $href → const Attribute
- The URL of a linked resource.
- $hreflang → const Attribute
- Specifies the language of the linked resource.
- $httpEquiv → const Attribute
- Defines a pragma directive.
- $id → const Attribute
- Often used with CSS to style a specific element. The value of this attribute must be unique.
- $inert → const Attribute
- A boolean attribute that makes the browser disregard user input events for the element. Useful when click events are present.
- $inputmode → const Attribute
- Provides a hint as to the type of data that might be entered by the user while editing the element or its contents.
- $integrity → const Attribute
- Specifies a Subresource Integrity value that allows browsers to verify what they fetch.
- $intrinsicsize → const Attribute
- This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it's the size specified in the attribute.
- $is → const Attribute
- Allows you to specify that a standard HTML element should behave like a registered custom built-in element.
- $ismap → const Attribute
- Indicates that the image is part of a server-side image map.
- $itemid → const Attribute
- The unique, global identifier of an item.
- $itemprop → const Attribute
- $itemref → const Attribute
-
Associates properties that are not descendants of an element with the
itemscopeattribute. It provides a list of element IDs with additional properties elsewhere in the document. - $itemscope → const Attribute
- Indicates that the element's content is about a particular item, creating the item and defining the scope of the associated vocabulary.
- $itemtype → const Attribute
-
Specifies the URL of the vocabulary that will be used to define
itempropproperties in the data structure. - $kind → const Attribute
- Specifies the kind of text track.
- $label → const Attribute
- Specifies a user-readable title of the element.
- $lang → const Attribute
- Defines the language used in the element.
- $language → const Attribute
- Defines the script language used in the element.
- $list → const Attribute
- Identifies a list of pre-defined options to suggest to the user.
- $loading → const Attribute
- Indicates if the element should be loaded lazily (loading="lazy") or loaded immediately (loading="eager").
- $loop → const Attribute
- Indicates whether the media should start playing from the start when it's finished.
- $low → const Attribute
- Indicates the upper bound of the lower range.
- $max → const Attribute
- Indicates the maximum value allowed.
- $maxlength → const Attribute
- Defines the maximum number of characters allowed in the element.
- $media → const Attribute
- Specifies a hint of the media for which the linked resource was designed.
- $method → const Attribute
- Defines which HTTP method to use when submitting the form. Can be GET (default) or POST.
- $min → const Attribute
- Indicates the minimum value allowed.
- $minlength → const Attribute
- Defines the minimum number of characters allowed in the element.
- $multiple → const Attribute
- Indicates whether multiple values can be entered in an input of the type email or file.
- $muted → const Attribute
- Indicates whether the audio will be initially silenced on page load.
- $name → const Attribute
- Name of the element. For example used by the server to identify the fields in form submits.
- $nonce → const Attribute
- A cryptographic nonce ("number used once") used by Content Security Policy to determine whether a given fetch is allowed to proceed.
- $novalidate → const Attribute
- This attribute indicates that the form shouldn't be validated when submitted.
- $onabort → const RawAttribute
- Script to be run on abort
- $onafterprint → const RawAttribute
- Script to be run after the document is printed
- $onbeforeprint → const RawAttribute
- Script to be run before the document is printed
- $onbeforeunload → const RawAttribute
- Script to be run when the document is about to be unloaded
- $onblur → const RawAttribute
- Fires the moment that the element loses focus
- $oncanplay → const RawAttribute
- Script to be run when a file is ready to start playing (when it has buffered enough to begin)
- $oncanplaythrough → const RawAttribute
- Script to be run when a file can be played all the way to the end without pausing for buffering
- $onchange → const RawAttribute
- Fires the moment when the value of the element is changed
- $onclick → const RawAttribute
- Fires on a mouse click on the element
- Script to be run when a context menu is triggered
- $oncopy → const RawAttribute
- Fires when the user copies the content of an element
- $oncuechange → const RawAttribute
- Script to be run when the cue changes in a element
- $oncut → const RawAttribute
- Fires when the user cuts the content of an element
- $ondblclick → const RawAttribute
- Fires on a mouse double-click on the element
- $ondrag → const RawAttribute
- Script to be run when an element is dragged
- $ondragend → const RawAttribute
- Script to be run at the end of a drag operation
- $ondragenter → const RawAttribute
- Script to be run when an element has been dragged to a valid drop target
- $ondragleave → const RawAttribute
- Script to be run when an element leaves a valid drop target
- $ondragover → const RawAttribute
- Script to be run when an element is being dragged over a valid drop target
- $ondragstart → const RawAttribute
- Script to be run at the start of a drag operation
- $ondrop → const RawAttribute
- Script to be run when dragged element is being dropped
- $ondurationchange → const RawAttribute
- Script to be run when the length of the media changes
- $onemptied → const RawAttribute
- Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects)
- $onended → const RawAttribute
- Script to be run when the media has reach the end (a useful event for messages like "thanks for listening")
- $onerror → const RawAttribute
- Script to be run when an error occurs
- $onfocus → const RawAttribute
- Fires the moment when the element gets focus
- $onhashchange → const RawAttribute
- Script to be run when there has been changes to the anchor part of a URL
- $oninput → const RawAttribute
- Script to be run when an element gets user input
- $oninvalid → const RawAttribute
- Script to be run when an element is invalid
- $onkeydown → const RawAttribute
- Fires when a user is pressing a key
- $onkeypress → const RawAttribute
- Fires when a user presses a key
- $onkeyup → const RawAttribute
- Fires when a user releases a key
- $onload → const RawAttribute
- Fires after the page is finished loading
- $onloadeddata → const RawAttribute
- Script to be run when media data is loaded
- $onloadedmetadata → const RawAttribute
- Script to be run when meta data (like dimensions and duration) are loaded
- $onloadstart → const RawAttribute
- Script to be run just as the file begins to load before anything is actually loaded
- $onmessage → const RawAttribute
- Script to be run when the message is triggered
- $onmousedown → const RawAttribute
- Fires when a mouse button is pressed down on an element
- $onmousemove → const RawAttribute
- Fires when the mouse pointer is moving while it is over an element
- $onmouseout → const RawAttribute
- Fires when the mouse pointer moves out of an element
- $onmouseover → const RawAttribute
- Fires when the mouse pointer moves over an element
- $onmouseup → const RawAttribute
- Fires when a mouse button is released over an element
- $onoffline → const RawAttribute
- Script to be run when the browser starts to work offline
- $ononline → const RawAttribute
- Script to be run when the browser starts to work online
- $onpagehide → const RawAttribute
- Script to be run when a user navigates away from a page
- $onpageshow → const RawAttribute
- Script to be run when a user navigates to a page
- $onpaste → const RawAttribute
- Fires when the user pastes some content in an element
- $onpause → const RawAttribute
- Script to be run when the media is paused either by the user or programmatically
- $onplay → const RawAttribute
- Script to be run when the media is ready to start playing
- $onplaying → const RawAttribute
- Script to be run when the media actually has started playing
- $onpopstate → const RawAttribute
- Script to be run when the window's history changes
- $onprogress → const RawAttribute
- Script to be run when the browser is in the process of getting the media data
- $onratechange → const RawAttribute
- Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode)
- $onreset → const RawAttribute
- Fires when the Reset button in a form is clicked
- $onresize → const RawAttribute
- Fires when the browser window is resized
- $onscroll → const RawAttribute
- Script to be run when an element's scrollbar is being scrolled
- $onsearch → const RawAttribute
- Fires when the user writes something in a search field (for <input="search">)
- $onseeked → const RawAttribute
- Script to be run when the seeking attribute is set to false indicating that seeking has ended
- $onseeking → const RawAttribute
- Script to be run when the seeking attribute is set to true indicating that seeking is active
- $onselect → const RawAttribute
- Fires after some text has been selected in an element
- $onstalled → const RawAttribute
- Script to be run when the browser is unable to fetch the media data for whatever reason
- $onstorage → const RawAttribute
- Script to be run when a Web Storage area is updated
- $onsubmit → const RawAttribute
- Fires when a form is submitted
- $onsuspend → const RawAttribute
- Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason
- $ontimeupdate → const RawAttribute
- Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media)
- $ontoggle → const RawAttribute
- Fires when the user opens or closes the
- $onunload → const RawAttribute
- Fires once a page has unloaded (or the browser window has been closed)
- $onvolumechange → const RawAttribute
- Script to be run each time the volume is changed which (includes setting the volume to "mute")
- $onwaiting → const RawAttribute
- Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data)
- $onwheel → const RawAttribute
- Fires when the mouse wheel rolls up or down over an element
- $open → const Attribute
- Indicates whether the contents are currently visible (in the case of a
- $optimum → const Attribute
- Indicates the optimal numeric value.
- $part → const Attribute
-
A space-separated list of part names for the element. This allows CSS to select and style specific elements in a shadow tree via the
::partpseudo-element. - $pattern → const Attribute
- Defines a regular expression which the element's value will be validated against.
- $ping → const Attribute
- The ping attribute specifies a space-separated list of URLs to be notified if a user follows the hyperlink.
- $placeholder → const Attribute
- Provides a hint to the user of what can be entered in the field.
- $playsinline → const Attribute
- A Boolean attribute indicating that the video is to be played "inline"; that is, within the element's playback area. Note that the absence of this attribute does not imply that the video will always be played in fullscreen.
- $popover → const Attribute
-
Designates an element as a popover element. Popover elements are hidden via
display: noneuntil they are opened by a control element or viaHTMLElement.showPopover(). - $poster → const Attribute
- A URL indicating a poster frame to show until the user plays or seeks.
- $preload → const Attribute
- Indicates whether the whole resource, parts of it or nothing should be preloaded.
- $property → const Attribute
- $readonly → const Attribute
- Indicates whether the element can be edited.
- $referrerpolicy → const Attribute
- Specifies which referrer is sent when fetching the resource.
- $rel → const Attribute
- Specifies the relationship of the target object to the link object.
- $required → const Attribute
- Indicates whether this element is required to fill out or not.
- $reversed → const Attribute
- Indicates whether the list should be displayed in a descending order instead of an ascending order.
- $role → const Attribute
- Defines an explicit role for an element for use by assistive technologies.
- $rows → const Attribute
- Defines the number of rows in a text area.
- $rowspan → const Attribute
- Defines the number of rows a table cell should span over.
- $sandbox → const Attribute
- Stops a document loaded in an iframe from using certain features (such as submitting forms or opening new windows).
- $scope → const Attribute
- Defines the cells that the header test (defined in the element) relates to.
- $scoped → const Attribute
- $selected → const Attribute
- Defines a value which will be selected on page load.
- $shape → const Attribute
- $size → const Attribute
- Defines the width of the element (in pixels). If the element's type attribute is text or password then it's the number of characters.
- $sizes → const Attribute
- $slot → const Attribute
- Assigns a slot in a shadow DOM shadow tree to an element.
- $span → const Attribute
- $spellcheck → const Attribute
- Indicates whether spell checking is allowed for the element.
- $src → const Attribute
- The URL of the embeddable content.
- $srcdoc → const Attribute
- $srclang → const Attribute
- $srcset → const Attribute
- One or more responsive image candidates.
- $start → const Attribute
- Defines the first number if other than 1.
- $step → const Attribute
- $style → const Attribute
- Defines CSS styles which will override styles previously set.
- $summary → const Attribute
- $tabindex → const Attribute
- Overrides the browser's default tab order and follows the one specified instead.
- $target → const Attribute
- Specifies where to open the linked document or where to display the response received.
- $title → const Attribute
- Text to be displayed in a tooltip when hovering over the element.
- $translate → const Attribute
- Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.
- $type → const Attribute
- Defines the type of the element.
- $usemap → const Attribute
- $value → const Attribute
- Defines a default value which will be displayed in the element on page load.
- $virtualkeyboardpolicy → const Attribute
-
Controls the on-screen virtual keyboard behavior on devices lacking a hardware keyboard. Accepts
auto(or an empty string) to show the keyboard automatically, ormanualto decouple focus from the keyboard’s state. - $width → const Attribute
- For the elements listed here, this establishes the element's width. Note: For all other instances, such as
- $wrap → const Attribute
- Indicates whether the text should be wrapped.
- $writingsuggestions → const Attribute
-
Indicates whether browser-provided writing suggestions should be enabled for the element. Accepts
falseto disable ortrue(or an empty string) to enable writing suggestions. - a → const Tag
- Together with its href attribute, creates a hyperlink to web pages, files, email addresses, locations within the current page, or anything else a URL can address.
- abbr → const Tag
- Represents an abbreviation or acronym.
- address → const Tag
- Indicates that the enclosed HTML provides contact information for a person or people, or for an organization.
- area → const Tag
- Defines an area inside an image map that has predefined clickable areas.
- article → const Tag
- Represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). Examples include a forum post, a magazine or newspaper article, a blog entry, a product card, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.
- aside → const Tag
- Represents a portion of a document whose content is only indirectly related to the document's main content. Asides are frequently presented as sidebars or call-out boxes.
- audio → const Tag
- Used to embed sound content in documents.
- b → const Tag
- Used to draw the reader's attention to the element's contents, which are not otherwise granted special importance.
- base → const Tag
- Specifies the base URL to use for all relative URLs in a document. There can be only one such element in a document.
- bdi → const Tag
- Tells the browser's bidirectional algorithm to treat the text it contains in isolation from its surrounding text.
- bdo → const Tag
- Overrides the current directionality of text, so that the text within is rendered in a different direction.
- blockquote → const Tag
- Indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation.
- body → const Tag
- Represents the content of an HTML document. There can be only one such element in a document.
- br → const Tag
- Produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.
- An interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology.
- canvas → const Tag
- Container element to use with either the canvas scripting API or the WebGL API to draw graphics and animations.
- caption → const Tag
- Specifies the caption (or title) of a table.
- cite → const Tag
- Used to mark up the title of a cited creative work.
- code → const Tag
- Displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code.
- col → const Tag
- Defines one or more columns in a column group represented by its implicit or explicit parent element.
- colgroup → const Tag
- Defines a group of columns within a table.
- data → const Tag
- Links a given piece of content with a machine-readable translation.
- datalist → const Tag
- Contains a set of
- dd → const Tag
- Provides the description, definition, or value for the preceding term (
- del → const Tag
- Represents a range of text that has been deleted from a document.
- details → const Tag
- Creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state.
- dfn → const Tag
- Used to indicate the term being defined within the context of a definition phrase or sentence.
- dialog → const Tag
- Represents a dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.
- div → const Tag
- The generic container for flow content. It has no effect on the content or layout until styled in some way using CSS.
- dl → const Tag
- Represents a description list. The element encloses a list of groups of terms (specified using the
- dt → const Tag
- Specifies a term in a description or definition list, and as such must be used inside a
- em → const Tag
- Marks text that has stress emphasis.
- embed → const Tag
- Embeds external content at the specified point in the document.
- fencedframe → const Tag
- Represents a nested browsing context, like
- fieldset → const Tag
- Used to group several controls as well as labels (
- figcaption → const Tag
- Represents a caption or legend describing the rest of the contents of its parent
- figure → const Tag
- Represents self-contained content, potentially with an optional caption, which is specified using the
- Represents a footer for its nearest ancestor sectioning content or sectioning root element. A
- form → const Tag
- Represents a document section containing interactive controls for submitting information.
- h1 → const Tag
- Represents six levels of section headings.
- h2 → const Tag
- h3 → const Tag
- h4 → const Tag
- h5 → const Tag
- h6 → const Tag
- head → const Tag
- Contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets.
- header → const Tag
- Represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.
- hgroup → const Tag
- Represents a heading grouped with any secondary content, such as subheadings, an alternative title, or a tagline.
- hr → const Tag
- Represents a thematic break between paragraph-level elements.
- html → const Tag
- Represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.
- i → const Tag
- Represents a range of text that is set off from the normal text for some reason.
- iframe → const Tag
- Represents a nested browsing context, embedding another HTML page into the current one.
- img → const Tag
- Embeds an image into the document.
- input → const Tag
- Used to create interactive controls for web-based forms to accept data from the user.
- ins → const Tag
- Represents a range of text that has been added to a document.
- kbd → const Tag
- Represents a span of inline text denoting textual user input from a keyboard, voice input, or any other text entry device.
- label → const Tag
- Represents a caption for an item in a user interface.
- legend → const Tag
- Represents a caption for the content of its parent
- li → const Tag
- Represents an item in a list.
- link → const Tag
- Specifies relationships between the current document and an external resource. This element is most commonly used to link to CSS but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
- mainTag → const Tag
- Represents the dominant content of the body of a document. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application.
- map → const Tag
- Used with elements to define an image map.
- mark → const Tag
- Represents text which is marked or highlighted for reference or notation purposes.
- math → const Tag
- The top-level element in MathML. Every valid MathML instance must be wrapped in it.
- A semantic alternative to
- meta → const Tag
- Represents metadata that cannot be represented by other HTML meta-related elements, like , ,
- meter → const Tag
- Represents either a scalar value within a known range or a fractional value.
- Represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents. Common examples of navigation sections are menus, tables of contents, and indexes.
- noscript → const Tag
- Defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.
- object → const Tag
- Represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.
- ol → const Tag
- Represents an ordered list of items.
- optgroup → const Tag
- Creates a grouping of options within a
- option → const Tag
- Used to define an item contained in a select, an
- output → const Tag
- Container element into which a site or app can inject the results of a calculation or the outcome of a user action.
- p → const Tag
- Represents a paragraph.
- picture → const Tag
-
Contains zero or more elements and one
element to offer alternative versions of an image for different display/device scenarios.
- pre → const Tag
- Represents preformatted text which is to be presented exactly as written in the HTML file.
- progress → const Tag
- Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
- q → const Tag
- Indicates that the enclosed text is a short inline quotation.
- rp → const Tag
- Used to provide fall-back parentheses for browsers that do not support the display of ruby annotations.
- rt → const Tag
- Specifies the ruby text component of a ruby annotation.
- ruby → const Tag
- Represents small annotations that are rendered above, below, or next to base text.
- s → const Tag
- Renders text with a strikethrough, or a line through it.
- samp → const Tag
- Used to enclose inline text which represents sample (or quoted) output from a computer program.
- script → const Tag
- Used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
- search → const Tag
- Represents a part that contains a set of form controls or other content related to performing a search or filtering operation.
- section → const Tag
- Represents a generic standalone section of a document, which doesn't have a more specific semantic element to represent it. Sections should always have a heading, with very few exceptions.
- select → const Tag
- Represents a control that provides a menu of options.
- slot → const Tag
- Part of the Web Components technology suite, this element is a placeholder inside a web component that you can fill with your own markup.
- small → const Tag
- Represents side-comments and small print, like copyright and legal text.
- source → const Tag
- Specifies multiple media resources for the picture, the audio element, or the video element.
- span → const Tag
- A generic inline container for phrasing content, which does not inherently represent anything.
- strong → const Tag
- Indicates that its contents have strong importance, seriousness, or urgency.
- style → const Tag
- Contains style information for a document or part of a document. It contains CSS, which is applied to the contents of the document containing this element.
- sub → const Tag
- Specifies inline text which should be displayed as subscript for solely typographical reasons.
- summary → const Tag
- Specifies a summary, caption, or legend for a details element's disclosure box.
- sup → const Tag
- Specifies inline text which is to be displayed as superscript for solely typographical reasons.
- svg → const Tag
- Container defining a new coordinate system and viewport.
- table → const Tag
- Represents tabular data—that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.
- tbody → const Tag
- Encapsulates a set of table rows ( elements), indicating that they comprise the body of a table's (main) data.
- td → const Tag
- A child of the element, it defines a cell of a table that contains data.
- template → const Tag
- A mechanism for holding HTML that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript.
- textarea → const Tag
- Represents a multi-line plain-text editing control.
- tfoot → const Tag
- Encapsulates a set of table rows ( elements), indicating that they comprise the foot of a table with information about the table's columns.
- th → const Tag
- A child of the element, it defines a cell as the header of a group of table cells.
- thead → const Tag
- Encapsulates a set of table rows ( elements), indicating that they comprise the head of a table with information about the table's columns.
- time → const Tag
- Represents a specific period in time.
- title → const Tag
- Defines the document's title that is shown in a browser's title bar or a page's tab. It only contains text; HTML tags within the element, if any, are also treated as plain text.
- tr → const Tag
- Defines a row of cells in a table.
- track → const Tag
- Used as a child of the media elements, audio and video.
- u → const Tag
- Represents a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation.
- ul → const Tag
- Represents an unordered list of items.
- varTag → const Tag
- Represents the name of a variable in a mathematical expression or a programming context.
- video → const Tag
- Embeds a media player which supports video playback into the document.
- wbr → const Tag
- Represents a word break opportunity.
Functions
-
$classes(
List< String> classes) → MarkupComponent -
$data_(
String attr) → Attribute - Lets you attach custom data attributes to an HTML element.
-
createMiddleware(
{FutureOr< Response?> requestHandler(Request)?, FutureOr<Response> responseHandler(Response)?, FutureOr<Response> errorHandler(Object error, StackTrace)?}) → Middleware - Creates a Middleware using the provided functions.
-
respondWithHtml(
List< HTML> body, {int statusCode = 200, Map<String, Object> ? headers, Map<String, Object> ? context}) → Response - Creates an HTTP response with an HTML body.
-
respondWithHtmlOob(
List< HTML> body, {int statusCode = 200, Map<String, Object> ? headers, Map<String, Object> ? context}) → Response - Creates an HTTP response with an HTML body.
-
serve(
Router router, Object address, int port, {required bool withHotreload, SecurityContext? securityContext, int? backlog, String? poweredByHeader = "Dart with package:htmdart"}) → void - Starts an HTTP server that serves requests using the given Router.