Tags

scalatags.text.Tags
trait Tags extends Tags[Builder, String, String], TagFactory

Attributes

Graph
Supertypes
trait TagFactory
trait Tags[Builder, String, String]
trait Util[Builder, String, String]
trait LowPriUtil[Builder, String, String]
class Object
trait Matchable
class Any
Show all
Known subtypes
object all.type
object short.type
object tags.type

Members list

Type members

Inherited classlikes

implicit class SeqNode[A](xs: Seq[A])(implicit ev: A => Modifier[Builder]) extends Modifier[Builder]

Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.

Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.

Attributes

Inherited from:
Util
Supertypes
trait Modifier[Builder]
class Object
trait Matchable
class Any

Inherited types

type ConcreteHtmlTag[T <: Output] <: TypedTag[Builder, T, FragT]

Attributes

Inherited from:
Util

Value members

Inherited methods

def attr(s: String, ns: Namespace, raw: Boolean): Attr

Constructs an Attr attribute object from a string; can be used inline:

Constructs an Attr attribute object from a string; can be used inline:

 div(
   attr("hello-world-special-attr") := "foo
 )

Or assigned to a name and used later

 val hello = attr("hello-world-special-attr")
 div(
   hello := "foo
 )

Attributes

Inherited from:
Util
def css(s: String): Style

Constructs a CSS Style from a string, can be used inline

Constructs a CSS Style from a string, can be used inline

 div(
   css("-moz-special-style") := "foo"
 )

Or assigned to a name and used later

 val mozSpecial := css("-moz-special-style")
 div(
   mozSpecial := "foo"
 )

Attributes

Inherited from:
Util
def frag(frags: Frag[Builder, String]*): Frag[Builder, FragT]

Attributes

Inherited from:
Util
def makeAbstractTypedTag[T <: String](tag: String, void: Boolean, namespaceConfig: Namespace): ConcreteHtmlTag[T]

Attributes

Inherited from:
Util
def modifier(mods: Modifier[Builder]*): Modifier[Builder]

Attributes

Inherited from:
Util
def tag(s: String, void: Boolean): ConcreteHtmlTag[String]

Attributes

Inherited from:
TagFactory

Concrete fields

lazy val `object`: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val a: ConcreteHtmlTag[String]

Represents a hyperlink, linking to another resource.

Represents a hyperlink, linking to another resource.

MDN

Attributes

lazy val area: ConcreteHtmlTag[String]

In conjunction with map, defines an image map

In conjunction with map, defines an image map

MDN

Attributes

lazy val audio: ConcreteHtmlTag[String]

Represents a sound or an audio stream.

Represents a sound or an audio stream.

MDN

Attributes

lazy val b: ConcreteHtmlTag[String]

Bold text.

Bold text.

MDN

Attributes

lazy val base: ConcreteHtmlTag[String]

Defines the base URL for relative URLs in the page.

Defines the base URL for relative URLs in the page.

MDN

Attributes

lazy val blockquote: ConcreteHtmlTag[String]

Represents a content that is quoted from another source.

Represents a content that is quoted from another source.

MDN

Attributes

lazy val body: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val br: ConcreteHtmlTag[String]

Represents a line break.

Represents a line break.

MDN

Attributes

lazy val button: ConcreteHtmlTag[String]

A button

A button

MDN

Attributes

lazy val canvas: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val caption: ConcreteHtmlTag[String]

The title of a table.

The title of a table.

MDN

Attributes

lazy val cite: ConcreteHtmlTag[String]

Represents the title of a work being cited.

Represents the title of a work being cited.

MDN

Attributes

lazy val code: ConcreteHtmlTag[String]

Represents computer code.

Represents computer code.

MDN

Attributes

lazy val col: ConcreteHtmlTag[String]

A single column.

A single column.

MDN

Attributes

lazy val colgroup: ConcreteHtmlTag[String]

A set of columns.

A set of columns.

MDN

Attributes

lazy val datalist: ConcreteHtmlTag[String]

A set of predefined options for other controls.

A set of predefined options for other controls.

MDN

Attributes

lazy val dd: ConcreteHtmlTag[String]

Represents the definition of the terms immediately listed before it.

Represents the definition of the terms immediately listed before it.

MDN

Attributes

lazy val del: ConcreteHtmlTag[String]

Defines a removal from the document.

Defines a removal from the document.

MDN

Attributes

lazy val div: ConcreteHtmlTag[String]

Represents a generic container with no special meaning.

Represents a generic container with no special meaning.

MDN

Attributes

lazy val dl: ConcreteHtmlTag[String]

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

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

MDN

Attributes

lazy val dt: ConcreteHtmlTag[String]

Represents a term defined by the next dd

Represents a term defined by the next dd

MDN

Attributes

lazy val em: ConcreteHtmlTag[String]

Represents emphasized text.

Represents emphasized text.

MDN

Attributes

lazy val embed: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val fieldset: ConcreteHtmlTag[String]

A set of fields.

A set of fields.

MDN

Attributes

lazy val figcaption: ConcreteHtmlTag[String]

Represents the legend of a figure.

Represents the legend of a figure.

MDN

Attributes

lazy val figure: ConcreteHtmlTag[String]

Represents a figure illustrated as part of the document.

Represents a figure illustrated as part of the document.

MDN

Attributes

lazy val form: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val h1: ConcreteHtmlTag[String]

Heading level 1

Heading level 1

MDN

Attributes

lazy val h2: ConcreteHtmlTag[String]

Heading level 2

Heading level 2

MDN

Attributes

lazy val h3: ConcreteHtmlTag[String]

Heading level 3

Heading level 3

MDN

Attributes

lazy val h4: ConcreteHtmlTag[String]

Heading level 4

Heading level 4

MDN

Attributes

lazy val h5: ConcreteHtmlTag[String]

Heading level 5

Heading level 5

MDN

Attributes

lazy val h6: ConcreteHtmlTag[String]

Heading level 6

Heading level 6

MDN

Attributes

lazy val head: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val header: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val hr: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val html: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val i: ConcreteHtmlTag[String]

Italicized text.

Italicized text.

MDN

Attributes

lazy val iframe: ConcreteHtmlTag[String]

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

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

MDN

Attributes

lazy val img: ConcreteHtmlTag[String]

Represents an image.

Represents an image.

MDN

Attributes

lazy val input: ConcreteHtmlTag[String]

A typed data field allowing the user to input data.

A typed data field allowing the user to input data.

MDN

Attributes

lazy val ins: ConcreteHtmlTag[String]

Defines an addition to the document.

Defines an addition to the document.

MDN

Attributes

lazy val label: ConcreteHtmlTag[String]

The caption of a single field

The caption of a single field

MDN

Attributes

lazy val legend: ConcreteHtmlTag[String]

The caption for a fieldset.

The caption for a fieldset.

MDN

Attributes

lazy val li: ConcreteHtmlTag[String]

Defines an item of an list.

Defines an item of an list.

MDN

Attributes

lazy val map: ConcreteHtmlTag[String]

In conjunction with area, defines an image map.

In conjunction with area, defines an image map.

MDN

Attributes

lazy val meta: ConcreteHtmlTag[String]

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

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

MDN

Attributes

lazy val ol: ConcreteHtmlTag[String]

Defines an ordered list of items.

Defines an ordered list of items.

MDN

Attributes

lazy val optgroup: ConcreteHtmlTag[String]

A set of options, logically grouped.

A set of options, logically grouped.

MDN

Attributes

lazy val option: ConcreteHtmlTag[String]

An option in a select element.

An option in a select element.

MDN

Attributes

lazy val p: ConcreteHtmlTag[String]

Defines a portion that should be displayed as a paragraph.

Defines a portion that should be displayed as a paragraph.

MDN

Attributes

lazy val param: ConcreteHtmlTag[String]

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

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

MDN

Attributes

lazy val pre: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val s: ConcreteHtmlTag[String]

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

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

MDN

Attributes

lazy val script: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val select: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val small: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val source: ConcreteHtmlTag[String]

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

MDN

Attributes

lazy val span: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val strong: ConcreteHtmlTag[String]

Represents especially important text.

Represents especially important text.

MDN

Attributes

lazy val sub: ConcreteHtmlTag[String]

Subscript tag

Subscript tag

MDN

Attributes

lazy val sup: ConcreteHtmlTag[String]

Superscript tag.

Superscript tag.

MDN

Attributes

lazy val table: ConcreteHtmlTag[String]

Represents data with more than one dimension.

Represents data with more than one dimension.

MDN

Attributes

lazy val tbody: ConcreteHtmlTag[String]

The table body.

The table body.

MDN

Attributes

lazy val td: ConcreteHtmlTag[String]

A single cell in a table.

A single cell in a table.

MDN

Attributes

lazy val textarea: ConcreteHtmlTag[String]

A multiline text edit control.

A multiline text edit control.

MDN

Attributes

lazy val tfoot: ConcreteHtmlTag[String]

The table footer.

The table footer.

MDN

Attributes

lazy val th: ConcreteHtmlTag[String]

A header cell in a table.

A header cell in a table.

MDN

Attributes

lazy val thead: ConcreteHtmlTag[String]

The table headers.

The table headers.

MDN

Attributes

lazy val tr: ConcreteHtmlTag[String]

A single row in a table.

A single row in a table.

MDN

Attributes

lazy val track: ConcreteHtmlTag[String]

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

MDN

Attributes

lazy val u: ConcreteHtmlTag[String]

Underlined text.

Underlined text.

MDN

Attributes

lazy val ul: ConcreteHtmlTag[String]

Defines an unordered list of items.

Defines an unordered list of items.

MDN

Attributes

lazy val video: ConcreteHtmlTag[String]

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.

MDN

Attributes

lazy val wbr: ConcreteHtmlTag[String]

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.

MDN

Attributes

Implicits

Inherited implicits

implicit def ArrayFrag[A](xs: Array[A])(implicit ev: A => Frag[Builder, String]): Frag[Builder, FragT]

Renders an Seq of FragT into a single FragT

Renders an Seq of FragT into a single FragT

Attributes

Inherited from:
LowPriUtil
implicit def ArrayNode[A](xs: Array[A])(implicit ev: A => Modifier[Builder]): SeqNode[A]

Allows you to modify a ConcreteHtmlTag by adding an Array containing other nest-able objects to its list of children.

Allows you to modify a ConcreteHtmlTag by adding an Array containing other nest-able objects to its list of children.

Attributes

Inherited from:
Util
implicit def GeneratorFrag[A](xs: Generator[A])(implicit ev: A => Frag[Builder, String]): Frag[Builder, FragT]

Renders an Seq of FragT into a single FragT

Renders an Seq of FragT into a single FragT

Attributes

Inherited from:
LowPriUtil
implicit def OptionFrag[A](xs: Option[A])(implicit ev: A => Frag[Builder, String]): Frag[Builder, FragT]

Renders an Option of FragT into a single FragT

Renders an Option of FragT into a single FragT

Attributes

Inherited from:
LowPriUtil
implicit def OptionNode[A](xs: Option[A])(implicit ev: A => Modifier[Builder]): SeqNode[A]

Allows you to modify a ConcreteHtmlTag by adding an Option containing other nest-able objects to its list of children.

Allows you to modify a ConcreteHtmlTag by adding an Option containing other nest-able objects to its list of children.

Attributes

Inherited from:
Util
implicit def SeqFrag[A](xs: Seq[A])(implicit ev: A => Frag[Builder, String]): Frag[Builder, FragT]

Renders an Seq of FragT into a single FragT

Renders an Seq of FragT into a single FragT

Attributes

Inherited from:
LowPriUtil
final implicit def SeqNode[A](xs: Seq[A])(implicit ev: A => Modifier[Builder]): SeqNode[A]

Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.

Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.

Attributes

Inherited from:
Util
implicit def UnitFrag(u: Unit): Frag[Builder, FragT]

Lets you put Unit into a scalatags tree, as a no-op.

Lets you put Unit into a scalatags tree, as a no-op.

Attributes

Inherited from:
LowPriUtil