The <pre> tag in HTML is used to define the block of preformatted text which preserves the text spaces, line breaks, tabs, and other formatting characters which are ignored by web browsers. Text in the <pre> element is displayed in a fixed-width font, but it can be changed using CSS. The <pre> tag requires a starting and end tag.
<pre> Contents... </pre>
Below examples illustrate the <pre> tag in HTML:
Supported Browsers: The browser supported by <pre> tag are listed below:
- Google Chrome
- Internet Explorer