H2

In HTML, the <h2> tag is used to define a level 2 heading. It is part of a set of heading tags ranging from <h1> to <h6>, with <h1> representing the highest level of heading and <h6> representing the lowest level.

The <h2> tag is typically used to represent subheadings or titles that are of lesser importance compared to the main title (which is often represented using the <h1> tag). <h2> headings are typically smaller and less prominent than <h1> headings, but still larger and more noticeable than lower-level headings such as <h3>, <h4>, and so on.

(ChatGPT, February 23, 2024)

Constructors

Link copied to clipboard
constructor(vararg children: InlineTagInterface)
constructor(attributes: Attributes, vararg children: InlineTagInterface)
constructor(attributes: Attributes, classes: ClassesInterface, vararg children: InlineTagInterface)
constructor(classes: ClassesInterface, vararg children: InlineTagInterface)
constructor(classes: ClassesInterface, children: List<InlineTagInterface>)
constructor(attributes: Attributes, classes: AttributeInterface, children: List<InlineTagInterface>)

Functions

Link copied to clipboard
open override fun build(): TagInterface
Link copied to clipboard
fun string(): String