TRENDING TOPICS

×

<pre> tag in HTML

The <pre> tag is used to defines preformatted text, and display organized computer code. The <pre> tag is a block element.

Important Description

  • The <pre> element is displayed in a fixed-width font, and it preserves both spaces and line breaks.
  • Open and close tag required of <pre>.

Example of <pre> tag

Result Look Like

This is a pre element,
it use to displayed a organized
computer codes.

<pre> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<pre> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

The "width" attribute is not supported in HTML5:

Attribute Value Description
width number Specifies the maximum number of characters per line

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at "advertise@gdatamart.com"

© 2021 GDATAMART.COM (All Rights Reserved)