HtmlTags

trait HtmlTags
class Object
trait Matchable
class Any
trait Laminar

Value members

Concrete methods

def htmlTag[Ref <: Element](name: String, void: Boolean): HtmlTag[Ref]

Create HTML tag

Create HTML tag

Note: this simply creates an instance of HtmlTag.

Type parameters:
Ref
  • type of elements with this tag, e.g. dom.html.Input for "input" tag
Value parameters:
name
  • e.g. "div" or "mwc-input"

Concrete fields

lazy val a: HtmlTag[HTMLAnchorElement]

Represents a hyperlink, linking to another resource.

lazy val abbr: HtmlTag[HTMLElement]

An abbreviation or acronym; the expansion of the abbreviation can be represented in the title attribute.

An abbreviation or acronym; the expansion of the abbreviation can be represented in the title attribute.

See also:
lazy val addressTag: HtmlTag[HTMLElement]

Defines a section containing contact information.

Defines a section containing contact information.

See also:
lazy val areaTag: HtmlTag[HTMLAreaElement]

In conjunction with map, defines an image map

lazy val articleTag: HtmlTag[HTMLElement]

Defines self-contained content that could exist independently of the rest of the content.

Defines self-contained content that could exist independently of the rest of the content.

See also:
lazy val asideTag: HtmlTag[HTMLElement]

Defines some content loosely related to the page content. If it is removed, the remaining content still makes sense.

Defines some content loosely related to the page content. If it is removed, the remaining content still makes sense.

See also:
lazy val audioTag: HtmlTag[HTMLAudioElement]

Represents a sound or an audio stream.

lazy val b: HtmlTag[HTMLElement]
lazy val baseTag: HtmlTag[HTMLBaseElement]

Defines the base URL for relative URLs in the page.

lazy val bdi: HtmlTag[HTMLElement]

Represents text that must be isolated from its surrounding for bidirectional text formatting. It allows embedding a span of text with a different, or unknown, directionality.

Represents text that must be isolated from its surrounding for bidirectional text formatting. It allows embedding a span of text with a different, or unknown, directionality.

See also:
lazy val bdo: HtmlTag[HTMLElement]

Represents the directionality of its children, in order to explicitly override the Unicode bidirectional algorithm.

Represents the directionality of its children, in order to explicitly override the Unicode bidirectional algorithm.

See also:
lazy val blockQuote: HtmlTag[HTMLQuoteElement]

Represents a content that is quoted from another source.

lazy val bodyTag: HtmlTag[HTMLBodyElement]

Represents the content of an HTML document. There is only one body element in a document.

Represents the content of an HTML document. There is only one body element in a document.

See also:
lazy val canvasTag: HtmlTag[HTMLCanvasElement]

Represents a bitmap area that scripts can use to render graphics like graphs, games or any visual images on the fly.

Represents a bitmap area that scripts can use to render graphics like graphs, games or any visual images on the fly.

See also:
lazy val cite: HtmlTag[HTMLElement]

Represents the title of a work being cited.

Represents the title of a work being cited.

See also:
lazy val code: HtmlTag[HTMLElement]

Represents computer code.

lazy val commandTag: HtmlTag[HTMLElement]

A command that the user can invoke.

lazy val dataList: HtmlTag[HTMLDataListElement]

A set of predefined options for other controls.

lazy val dataTag: HtmlTag[HTMLElement]

Associates to its content a machine-readable equivalent.

Associates to its content a machine-readable equivalent.

See also:
lazy val dd: HtmlTag[HTMLElement]

Represents the definition of the terms immediately listed before it.

Represents the definition of the terms immediately listed before it.

See also:
lazy val del: HtmlTag[HTMLModElement]

Defines a remolazy val from the document.

lazy val detailsTag: HtmlTag[HTMLElement]

A widget from which the user can obtain additional information or controls.

A widget from which the user can obtain additional information or controls.

See also:
lazy val dfn: HtmlTag[HTMLElement]

Represents a term whose definition is contained in its nearest ancestor content.

Represents a term whose definition is contained in its nearest ancestor content.

See also:
lazy val dialogTag: HtmlTag[HTMLDialogElement]

Dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.

Dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.

Note: The tabindex attribute must not be used on the <dialog> element

See also:
lazy val div: HtmlTag[HTMLDivElement]

Represents a generic container with no special meaning.

lazy val dl: HtmlTag[HTMLDListElement]

Defines a definition list; a list of terms and their associated definitions.

Defines a definition list; a list of terms and their associated definitions.

See also:
lazy val dt: HtmlTag[HTMLElement]

Represents a term defined by the next dd

Represents a term defined by the next dd

See also:
lazy val em: HtmlTag[HTMLElement]

Represents emphasized text.

lazy val embedTag: HtmlTag[HTMLEmbedElement]

Represents a integration point for an external, often non-HTML, application or interactive content.

Represents a integration point for an external, often non-HTML, application or interactive content.

See also:
lazy val figCaption: HtmlTag[HTMLElement]

Represents the legend of a figure.

lazy val figure: HtmlTag[HTMLElement]

Represents a figure illustrated as part of the document.

Represents a figure illustrated as part of the document.

See also:
lazy val footerTag: HtmlTag[HTMLElement]

Defines the footer for a page or section. It often contains a copyright notice, some links to legal information, or addresses to give feedback.

Defines the footer for a page or section. It often contains a copyright notice, some links to legal information, or addresses to give feedback.

See also:
lazy val form: HtmlTag[HTMLFormElement]

Represents a form, consisting of controls, that can be submitted to a server for processing.

Represents a form, consisting of controls, that can be submitted to a server for processing.

See also:
lazy val headTag: HtmlTag[HTMLHeadElement]

Represents a collection of metadata about the document, including links to, or definitions of, scripts and style sheets.

Represents a collection of metadata about the document, including links to, or definitions of, scripts and style sheets.

See also:
lazy val headerTag: HtmlTag[HTMLElement]

Defines the header of a page or section. It often contains a logo, the title of the Web site, and a navigational table of content.

Defines the header of a page or section. It often contains a logo, the title of the Web site, and a navigational table of content.

See also:
lazy val hr: HtmlTag[HTMLHRElement]

Represents a thematic break between paragraphs of a section or article or any longer content.

Represents a thematic break between paragraphs of a section or article or any longer content.

See also:
lazy val htmlRootTag: HtmlTag[HTMLHtmlElement]

Represents the root of an HTML or XHTML document. All other elements must be descendants of this element.

Represents the root of an HTML or XHTML document. All other elements must be descendants of this element.

See also:
lazy val i: HtmlTag[HTMLElement]

Italicized text.

lazy val iframe: HtmlTag[HTMLIFrameElement]

Represents a nested browsing context, that is an embedded HTML document.

lazy val input: HtmlTag[HTMLInputElement]

A typed data field allowing the user to input data.

lazy val ins: HtmlTag[HTMLModElement]

Defines an addition to the document.

lazy val kbd: HtmlTag[HTMLElement]

Represents user input, often from a keyboard, but not necessarily.

Represents user input, often from a keyboard, but not necessarily.

See also:
lazy val keyGenTag: HtmlTag[HTMLElement]

A key-pair generator control.

lazy val label: HtmlTag[HTMLLabelElement]
lazy val legend: HtmlTag[HTMLLegendElement]
lazy val li: HtmlTag[HTMLLIElement]
lazy val linkTag: HtmlTag[HTMLLinkElement]

Used to link JavaScript and external CSS with the current HTML document.

Used to link JavaScript and external CSS with the current HTML document.

See also:
lazy val mainTag: HtmlTag[HTMLElement]

Defines the main or important content in the document. There is only one main element in the document.

Defines the main or important content in the document. There is only one main element in the document.

See also:
lazy val mapTag: HtmlTag[HTMLMapElement]

In conjunction with area, defines an image map.

lazy val mark: HtmlTag[HTMLElement]

Represents text highlighted for reference purposes, that is for its relevance in another context.

Represents text highlighted for reference purposes, that is for its relevance in another context.

See also:
lazy val mathTag: HtmlTag[HTMLElement]

Defines a mathematical formula.

Defines a mathematical formula.

See also:
lazy val metaTag: HtmlTag[HTMLMetaElement]

Defines metadata that can't be defined using another HTML element.

lazy val meterTag: HtmlTag[HTMLElement]

A scalar measurement within a known range.

A scalar measurement within a known range.

See also:
lazy val noScriptTag: HtmlTag[HTMLElement]

Defines alternative content to display when the browser doesn't support scripting.

Defines alternative content to display when the browser doesn't support scripting.

See also:
lazy val objectTag: HtmlTag[HTMLObjectElement]

Represents an external resource, which is treated as an image, an HTML sub-document, or an external resource to be processed by a plug-in.

Represents an external resource, which is treated as an image, an HTML sub-document, or an external resource to be processed by a plug-in.

See also:
lazy val ol: HtmlTag[HTMLOListElement]
lazy val optGroup: HtmlTag[HTMLOptGroupElement]
lazy val option: HtmlTag[HTMLOptionElement]
lazy val outputTag: HtmlTag[HTMLElement]

The result of a calculation

lazy val p: HtmlTag[HTMLParagraphElement]

Defines a portion that should be displayed as a paragraph.

lazy val paramTag: HtmlTag[HTMLParamElement]

Defines parameters for use by plug-ins invoked by object elements.

lazy val pre: HtmlTag[HTMLPreElement]

Indicates that its content is preformatted and that this format must be preserved.

Indicates that its content is preformatted and that this format must be preserved.

See also:
lazy val rp: HtmlTag[HTMLElement]

Represents parenthesis around a ruby annotation, used to display the annotation in an alternate way by browsers not supporting the standard display for annotations.

Represents parenthesis around a ruby annotation, used to display the annotation in an alternate way by browsers not supporting the standard display for annotations.

See also:
lazy val rt: HtmlTag[HTMLElement]

Represents the text of a ruby annotation.

Represents the text of a ruby annotation.

See also:
lazy val ruby: HtmlTag[HTMLElement]

Represents content to be marked with ruby annotations, short runs of text presented alongside the text. This is often used in conjunction with East Asian language where the annotations act as a guide for pronunciation, like the Japanese furigana .

Represents content to be marked with ruby annotations, short runs of text presented alongside the text. This is often used in conjunction with East Asian language where the annotations act as a guide for pronunciation, like the Japanese furigana .

See also:
lazy val s: HtmlTag[HTMLElement]

Strikethrough element, used for that is no longer accurate or relevant.

Strikethrough element, used for that is no longer accurate or relevant.

See also:
lazy val samp: HtmlTag[HTMLElement]

Represents the output of a program or a computer.

Represents the output of a program or a computer.

See also:
lazy val scriptTag: HtmlTag[HTMLScriptElement]

Defines either an internal script or a link to an external script. The script language is JavaScript.

Defines either an internal script or a link to an external script. The script language is JavaScript.

See also:
lazy val sectionTag: HtmlTag[HTMLElement]

Represents a generic section of a document, i.e., a thematic grouping of content, typically with a heading.

Represents a generic section of a document, i.e., a thematic grouping of content, typically with a heading.

See also:
lazy val select: HtmlTag[HTMLSelectElement]

A control that allows the user to select one of a set of options.

lazy val small: HtmlTag[HTMLElement]

Represents a side comment; text like a disclaimer or copyright, which is not essential to the comprehension of the document.

Represents a side comment; text like a disclaimer or copyright, which is not essential to the comprehension of the document.

See also:
lazy val sourceTag: HtmlTag[HTMLSourceElement]

Allows the authors to specify alternate media resources for media elements like video or audio

Allows the authors to specify alternate media resources for media elements like video or audio

See also:
lazy val span: HtmlTag[HTMLSpanElement]

Represents text with no specific meaning. This has to be used when no other text-semantic element conveys an adequate meaning, which, in this case, is often brought by global attributes like class, lang, or dir.

Represents text with no specific meaning. This has to be used when no other text-semantic element conveys an adequate meaning, which, in this case, is often brought by global attributes like class, lang, or dir.

See also:
lazy val strong: HtmlTag[HTMLElement]

Represents especially important text.

Represents especially important text.

See also:
lazy val sub: HtmlTag[HTMLElement]
lazy val summaryTag: HtmlTag[HTMLElement]

A summary, caption, or legend for a given details.

A summary, caption, or legend for a given details.

See also:
lazy val sup: HtmlTag[HTMLElement]

Superscript tag.

lazy val table: HtmlTag[HTMLTableElement]

Represents data with more than one dimension.

lazy val td: HtmlTag[HTMLTableCellElement]
lazy val textArea: HtmlTag[HTMLTextAreaElement]
lazy val th: HtmlTag[HTMLTableCellElement]
lazy val timeTag: HtmlTag[HTMLElement]

Represents a date and time value; the machine-readable equivalent can be represented in the datetime attribute

Represents a date and time value; the machine-readable equivalent can be represented in the datetime attribute

See also:
lazy val titleTag: HtmlTag[HTMLTitleElement]

Defines the title of the document, shown in a browser's title bar or on the page's tab. It can only contain text and any contained tags are not interpreted.

Defines the title of the document, shown in a browser's title bar or on the page's tab. It can only contain text and any contained tags are not interpreted.

See also:
lazy val tr: HtmlTag[HTMLTableRowElement]
lazy val trackTag: HtmlTag[HTMLTrackElement]

Allows authors to specify timed text track for media elements like video or audio

Allows authors to specify timed text track for media elements like video or audio

See also:
lazy val u: HtmlTag[HTMLElement]

Underlined text.

lazy val ul: HtmlTag[HTMLUListElement]
lazy val varTag: HtmlTag[HTMLElement]

Represents a variable.

lazy val videoTag: HtmlTag[HTMLVideoElement]

Represents a video, and its associated audio files and captions, with the necessary interface to play it.

Represents a video, and its associated audio files and captions, with the necessary interface to play it.

See also:
lazy val wbr: HtmlTag[HTMLElement]

Represents a line break opportunity, that is a suggested point for wrapping text in order to improve readability of text split on several lines.

Represents a line break opportunity, that is a suggested point for wrapping text in order to improve readability of text split on several lines.

See also: