Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PassionPenguin authored Jan 10, 2025
1 parent 0b7681b commit 20bc729
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions files/en-us/web/html/element/pre/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ browser-compat: html.elements.pre

{{HTMLSidebar}}

The **`<pre>`** [HTML](/en-US/docs/Web/HTML) element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or [monospaced](https://en.wikipedia.org/wiki/Monospaced_font) font. Whitespace inside this element is displayed as written.
The **`<pre>`** [HTML](/en-US/docs/Web/HTML) element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or [monospaced](https://en.wikipedia.org/wiki/Monospaced_font) font.

> [!NOTE]
> A leading newline character immediately following the pre element start tag is stripped.
Whitespace inside this element is displayed as written, with one exception. If one or more leading newline characters are included immediately following the opening ·<pre>· tag, the _first_ newline character is stripped.

By default, `<pre>` is a [block-level](/en-US/docs/Glossary/Block-level_content) element, i.e. its default {{cssxref("display")}} value is `block`.

Expand Down

0 comments on commit 20bc729

Please sign in to comment.