HtmlTags

com.raquo.laminar.defs.tags.HtmlTags
trait HtmlTags

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Laminar

Members list

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"

Attributes

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.

Attributes

See also
lazy val addressTag: HtmlTag[HTMLElement]

Defines a section containing contact information.

Defines a section containing contact information.

Attributes

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.

Attributes

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.

Attributes

See also
lazy val audioTag: HtmlTag[HTMLAudioElement]

Represents a sound or an audio stream.

lazy val b: HtmlTag[HTMLElement]

Bold text.

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.

Attributes

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.

Attributes

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.

Attributes

See also
lazy val br: HtmlTag[HTMLBRElement]
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.

Attributes

See also
lazy val caption: HtmlTag[HTMLTableCaptionElement]
lazy val cite: HtmlTag[HTMLElement]

Represents the title of a work being cited.

Represents the title of a work being cited.

Attributes

See also
lazy val code: HtmlTag[HTMLElement]

Represents computer code.

Represents computer code.

Attributes

See also
lazy val commandTag: HtmlTag[HTMLElement]

A command that the user can invoke.

A command that the user can invoke.

Attributes

See also
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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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

Attributes

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.

Attributes

See also
lazy val dt: HtmlTag[HTMLElement]

Represents a term defined by the next dd

Represents a term defined by the next dd

Attributes

See also
lazy val em: HtmlTag[HTMLElement]

Represents emphasized text.

Represents emphasized text.

Attributes

See also
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.

Attributes

See also
lazy val figCaption: HtmlTag[HTMLElement]

Represents the legend of a figure.

Represents the legend of a figure.

Attributes

See also
lazy val figure: HtmlTag[HTMLElement]

Represents a figure illustrated as part of the document.

Represents a figure illustrated as part of the document.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

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

Attributes

See also
lazy val img: HtmlTag[HTMLImageElement]
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.

Attributes

See also
lazy val keyGenTag: HtmlTag[HTMLElement]

A key-pair generator control.

A key-pair generator control.

Attributes

See also
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.

Attributes

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.

Attributes

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.

Attributes

See also
lazy val mathTag: HtmlTag[HTMLElement]

Defines a mathematical formula.

Defines a mathematical formula.

Attributes

See also
lazy val metaTag: HtmlTag[HTMLMetaElement]

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

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

Attributes

See also
lazy val meterTag: HtmlTag[HTMLElement]

A scalar measurement within a known range.

A scalar measurement within a known range.

Attributes

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.

Attributes

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.

Attributes

See also
lazy val ol: HtmlTag[HTMLOListElement]

Defines an ordered list of items.

lazy val optGroup: HtmlTag[HTMLOptGroupElement]

A set of options, logically grouped.

lazy val option: HtmlTag[HTMLOptionElement]
lazy val outputTag: HtmlTag[HTMLElement]

The result of a calculation

The result of a calculation

Attributes

See also
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.

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

Attributes

See also
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.

Attributes

See also
lazy val progressTag: HtmlTag[HTMLProgressElement]
lazy val q: HtmlTag[HTMLQuoteElement]
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.

Attributes

See also
lazy val rt: HtmlTag[HTMLElement]

Represents the text of a ruby annotation.

Represents the text of a ruby annotation.

Attributes

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 .

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

See also
lazy val select: HtmlTag[HTMLSelectElement]

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

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

Attributes

See also
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.

Attributes

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

Attributes

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.

Attributes

See also
lazy val strong: HtmlTag[HTMLElement]

Represents especially important text.

Represents especially important text.

Attributes

See also
lazy val styleTag: HtmlTag[HTMLStyleElement]
lazy val sub: HtmlTag[HTMLElement]

Subscript tag

lazy val summaryTag: HtmlTag[HTMLElement]

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

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

Attributes

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 thead: HtmlTag[HTMLTableSectionElement]
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

Attributes

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.

Attributes

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

Attributes

See also
lazy val u: HtmlTag[HTMLElement]

Underlined text.

lazy val ul: HtmlTag[HTMLUListElement]

Defines an unordered list of items.

lazy val varTag: HtmlTag[HTMLElement]

Represents a variable.

Represents a variable.

Attributes

See also
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.

Attributes

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.

Attributes

See also