< All the HTML Tags >

<pre></pre>

Video Coming Soon...

  • pre

    Tag Type

    block

    Tag Category

    text formatting

    Defines preformatted text

    Viewed

    1

    Examples

    1

Definition:

The HTML <pre> tag is used to display preformatted text, preserving whitespace and line breaks, which is particularly useful for code snippets or poetry.

The text within the <pre> tag is rendered in a monospace font, maintaining the intended formatting and improving readability for formatted content.

Incorporating the `<pre>` tag enhances the presentation of preformatted content, ensuring clarity and understanding.

Attributes:

width, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default pre Example:

Using the <pre> tag to display preformatted text.
<pre>This is preformatted text.</pre>

Default pre Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…