#[non_exhaustive]pub enum HtmlTag {
Show 58 variants
Address,
Article,
Aside,
Bold,
Blockquote,
Canvas,
Cite,
CodeText,
Deleted,
DescriptionList,
DescriptionListDescription,
DescriptionListTerm,
Div,
Emphasized,
Figcaption,
Figure,
Footer,
Header,
Heading1,
Heading2,
Heading3,
Heading4,
Heading5,
Heading6,
HeadingGroup,
HorizontalRule,
Iframe,
Image,
InlineQuote,
Inserted,
Italic,
LineBreak,
Link,
ListElement,
Main,
Mark,
Navigation,
OrderedList,
ParagraphText,
PreformattedText,
Section,
Small,
Span,
Strong,
Subscript,
Superscript,
Table,
TableBody,
TableCaption,
TableCell,
TableColumn,
TableColumnGroup,
TableFooter,
TableHeader,
TableHeaderCell,
TableRow,
UnorderedList,
Video,
}Expand description
A list of HTML tags
This non-comprehensive list of tags is a subset of those listed in the MDN Web Docs Html Elements Reference.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Address
A contact address
Article
A self-contained article
Aside
Indicates side content to the main content
Bold
Bold text
Blockquote
Indicates a blockquote
Canvas
HTML canvas element
Cite
Used to mark the title of a cited work
CodeText
A text block containing code
Generally, this causes it to be rendered in a monospace font, and to preserve whitespace
Deleted
Deleted text
DescriptionList
DescriptionListDescription
A description or definition for a term in a description list
DescriptionListTerm
A term to be defined in a description list
Div
The almighty div – a generic container with no predefined meaning
Emphasized
Emphasized text
Figcaption
The caption for the contents of a figure
Figure
A figure, such as an image
A page footer
Header
A page header, or introductory content
Heading1
A top level heading
Heading2
A second-level heading
Heading3
A third-level heading
Heading4
A fourth-level heading
Heading5
A fifth-level heading
Heading6
A sixth (and lowest) level heading
HeadingGroup
A wrapper to associate a heading with related content
HorizontalRule
A horiztonal rule across the page
Iframe
A frame to embed one page within another
Image
An image element
InlineQuote
An inline quote
Inserted
Inserted text
Italic
Italic text
LineBreak
A manual line break
Link
A link to another page or resource
ListElement
A list element, used within OrderedList and UnorderedList elements
Main
A container for the main content on a page
Mark
Marked text
A container for the navigation contenton a page
OrderedList
An unordered, generally numbered, list
ParagraphText
Paragraph text
PreformattedText
Preformatted text, typically rendered in monospace
Section
A generic section of the document
Small
Small text
Span
A subsection of text
Strong
Important text
Subscript
Subscript text
Superscript
Superscript text
Table
A table element
TableBody
The table body
TableCaption
A table caption
TableCell
A single data cell within a table row (td)
TableColumn
A table column, generally found inside a TableColumnGroup
TableColumnGroup
A group of table columns
The footer of a table
TableHeader
The section of the table containing header rows
TableHeaderCell
A header cell within a table row (th)
TableRow
A table row
UnorderedList
An unordered, generally bulleted, list
Video
An embedded video element