H2
class H2(attributes: Attributes, classes: AttributeInterface, children: List<InlineTagInterface>) : AbstractTagBuilder<TagInterface> , H1Interface
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(attributes: Attributes, classes: AttributeInterface, children: List<InlineTagInterface>)