HtmlTag

Enum HtmlTag 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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

The outer wrapper for a description list

A dl generally consists of alternating dt and dd elements.

§

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

§

Footer

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

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

§

Navigation

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

§

TableFooter

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

Trait Implementations§

Source§

impl Clone for HtmlTag

Source§

fn clone(&self) -> HtmlTag

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HtmlTag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for HtmlTag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ContainerType> for HtmlTag

Source§

fn from(value: ContainerType) -> Self

Converts to this type from the input type.
Source§

impl From<TableCellType> for HtmlTag

Source§

fn from(value: TableCellType) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for HtmlTag

Source§

fn eq(&self, other: &HtmlTag) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for HtmlTag

Source§

impl Eq for HtmlTag

Source§

impl StructuralPartialEq for HtmlTag

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.