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.

Represents a hyperlink, linking to another resource.

Attributes

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.

abbr @ MDN

Attributes

lazy val addressTag: HtmlTag[HTMLElement]

Defines a section containing contact information.

Defines a section containing contact information.

address @ MDN

Attributes

lazy val areaTag: HtmlTag[HTMLAreaElement]

In conjunction with map, defines an image map

In conjunction with map, defines an image map

Attributes

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.

article @ MDN

Attributes

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.

aside @ MDN

Attributes

lazy val audioTag: HtmlTag[HTMLAudioElement]

Represents a sound or an audio stream.

Represents a sound or an audio stream.

Attributes

lazy val b: HtmlTag[HTMLElement]

Bold text.

Bold text.

b @ MDN

Attributes

lazy val baseTag: HtmlTag[HTMLBaseElement]

Defines the base URL for relative URLs in the page.

Defines the base URL for relative URLs in the page.

Attributes

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.

bdi @ MDN

Attributes

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.

bdo @ MDN

Attributes

lazy val blockQuote: HtmlTag[HTMLQuoteElement]

Represents a content that is quoted from another source.

Represents a content that is quoted from another source.

Attributes

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

lazy val br: HtmlTag[HTMLBRElement]

Represents a line break.

Represents a line break.

Attributes

lazy val button: HtmlTag[HTMLButtonElement]

A button

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

lazy val caption: HtmlTag[HTMLTableCaptionElement]

The title of a table.

Attributes

lazy val cite: HtmlTag[HTMLElement]

Represents the title of a work being cited.

Represents the title of a work being cited.

cite @ MDN

Attributes

lazy val code: HtmlTag[HTMLElement]

Represents computer code.

Represents computer code.

code @ MDN

Attributes

lazy val col: HtmlTag[HTMLTableColElement]

A single column.

Attributes

lazy val colGroup: HtmlTag[HTMLTableColElement]

A set of columns.

Attributes

lazy val commandTag: HtmlTag[HTMLElement]

A command that the user can invoke.

A command that the user can invoke.

the-command-element.html @ W3C

Attributes

lazy val dataList: HtmlTag[HTMLDataListElement]

A set of predefined options for other controls.

A set of predefined options for other controls.

Attributes

lazy val dataTag: HtmlTag[HTMLElement]

Associates to its content a machine-readable equivalent.

Associates to its content a machine-readable equivalent.

data @ MDN

Attributes

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.

dd @ MDN

Attributes

lazy val del: HtmlTag[HTMLModElement]

Defines a remolazy val from the document.

Defines a remolazy val from the document.

Attributes

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.

details @ MDN

Attributes

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.

dfn @ MDN

Attributes

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

lazy val div: HtmlTag[HTMLDivElement]

Represents a generic container with no special meaning.

Represents a generic container with no special meaning.

Attributes

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

lazy val dt: HtmlTag[HTMLElement]

Represents a term defined by the next dd

Represents a term defined by the next dd

dt @ MDN

Attributes

lazy val em: HtmlTag[HTMLElement]

Represents emphasized text.

Represents emphasized text.

em @ MDN

Attributes

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

lazy val fieldSet: HtmlTag[HTMLFieldSetElement]

A set of fields.

Attributes

lazy val figCaption: HtmlTag[HTMLElement]

Represents the legend of a figure.

Represents the legend of a figure.

figcaption @ MDN

Attributes

lazy val figure: HtmlTag[HTMLElement]

Represents a figure illustrated as part of the document.

Represents a figure illustrated as part of the document.

figure @ MDN

Attributes

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.

footer @ MDN

Attributes

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

lazy val h1: HtmlTag[HTMLHeadingElement]

Heading level 1

Attributes

lazy val h2: HtmlTag[HTMLHeadingElement]

Heading level 2

Attributes

lazy val h3: HtmlTag[HTMLHeadingElement]

Heading level 3

Attributes

lazy val h4: HtmlTag[HTMLHeadingElement]

Heading level 4

Attributes

lazy val h5: HtmlTag[HTMLHeadingElement]

Heading level 5

Attributes

lazy val h6: HtmlTag[HTMLHeadingElement]

Heading level 6

Attributes

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

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.

header @ MDN

Attributes

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

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

lazy val i: HtmlTag[HTMLElement]

Italicized text.

Italicized text.

i @ MDN

Attributes

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

lazy val img: HtmlTag[HTMLImageElement]

Represents an image.

Represents an image.

Attributes

lazy val input: HtmlTag[HTMLInputElement]

A typed data field allowing the user to input data.

A typed data field allowing the user to input data.

Attributes

lazy val ins: HtmlTag[HTMLModElement]

Defines an addition to the document.

Defines an addition to the document.

Attributes

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.

kbd @ MDN

Attributes

lazy val keyGenTag: HtmlTag[HTMLElement]

A key-pair generator control.

A key-pair generator control.

keygen @ MDN

Attributes

lazy val label: HtmlTag[HTMLLabelElement]

The caption of a single field

The caption of a single field

Attributes

lazy val legend: HtmlTag[HTMLLegendElement]

The caption for a fieldset.

The caption for a fieldset.

Attributes

lazy val li: HtmlTag[HTMLLIElement]

Defines an item of an list.

Defines an item of an list.

Attributes

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

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.

main @ MDN

Attributes

lazy val mapTag: HtmlTag[HTMLMapElement]

In conjunction with area, defines an image map.

In conjunction with area, defines an image map.

Attributes

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.

mark @ MDN

Attributes

lazy val mathTag: HtmlTag[HTMLElement]

Defines a mathematical formula.

Defines a mathematical formula.

math @ MDN

Attributes

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

lazy val meterTag: HtmlTag[HTMLElement]

A scalar measurement within a known range.

A scalar measurement within a known range.

meter @ MDN

Attributes

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.

noscript @ MDN

Attributes

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

lazy val ol: HtmlTag[HTMLOListElement]

Defines an ordered list of items.

Defines an ordered list of items.

Attributes

lazy val optGroup: HtmlTag[HTMLOptGroupElement]

A set of options, logically grouped.

A set of options, logically grouped.

Attributes

lazy val option: HtmlTag[HTMLOptionElement]

An option in a select element.

An option in a select element.

Attributes

lazy val outputTag: HtmlTag[HTMLElement]

The result of a calculation

The result of a calculation

output @ MDN

Attributes

lazy val p: HtmlTag[HTMLParagraphElement]

Defines a portion that should be displayed as a paragraph.

Defines a portion that should be displayed as a paragraph.

Attributes

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

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

lazy val progressTag: HtmlTag[HTMLProgressElement]

A progress completion bar

A progress completion bar

Attributes

lazy val q: HtmlTag[HTMLQuoteElement]

An inline quotation.

An inline quotation.

Attributes

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.

rp @ MDN

Attributes

lazy val rt: HtmlTag[HTMLElement]

Represents the text of a ruby annotation.

Represents the text of a ruby annotation.

rt @ MDN

Attributes

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 .

ruby @ MDN

Attributes

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.

s @ MDN

Attributes

lazy val samp: HtmlTag[HTMLElement]

Represents the output of a program or a computer.

Represents the output of a program or a computer.

samp @ MDN

Attributes

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

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.

section @ MDN

Attributes

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

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.

small @ MDN

Attributes

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

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

lazy val strong: HtmlTag[HTMLElement]

Represents especially important text.

Represents especially important text.

strong @ MDN

Attributes

lazy val styleTag: HtmlTag[HTMLStyleElement]

Used to write inline CSS.

Used to write inline CSS.

Attributes

lazy val sub: HtmlTag[HTMLElement]

Subscript tag

Subscript tag

sub @ MDN

Attributes

lazy val summaryTag: HtmlTag[HTMLElement]

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

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

summary @ MDN

Attributes

lazy val sup: HtmlTag[HTMLElement]

Superscript tag.

Superscript tag.

sup @ MDN

Attributes

lazy val table: HtmlTag[HTMLTableElement]

Represents data with more than one dimension.

Represents data with more than one dimension.

Attributes

lazy val tbody: HtmlTag[HTMLTableSectionElement]

The table body.

Attributes

lazy val td: HtmlTag[HTMLTableCellElement]

A single cell in a table.

A single cell in a table.

Attributes

lazy val textArea: HtmlTag[HTMLTextAreaElement]

A multiline text edit control.

A multiline text edit control.

Attributes

lazy val tfoot: HtmlTag[HTMLTableSectionElement]

The table footer.

Attributes

lazy val th: HtmlTag[HTMLTableCellElement]

A header cell in a table.

A header cell in a table.

Attributes

lazy val thead: HtmlTag[HTMLTableSectionElement]

The table headers.

Attributes

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

time @ MDN

Attributes

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

lazy val tr: HtmlTag[HTMLTableRowElement]

A single row in a table.

A single row in a table.

Attributes

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

lazy val u: HtmlTag[HTMLElement]

Underlined text.

Underlined text.

u @ MDN

Attributes

lazy val ul: HtmlTag[HTMLUListElement]

Defines an unordered list of items.

Defines an unordered list of items.

Attributes

lazy val varTag: HtmlTag[HTMLElement]

Represents a variable.

Represents a variable.

var @ MDN

Attributes

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

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.

wbr @ MDN

Attributes