About Lesson
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.
Syntax:
<pre> Contents… </pre>
Supported Browsers:
Google Chrome
Internet Explorer
Firefox
Opera
Safari
Exercise Files
No Attachment Found
Join the conversation