pre tag in html

The <pre> tag defines preformatted text.
Text in a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks.


<!DOCTYPE html>
<html>
<body>

<pre>
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both      spaces and
line breaks
</pre>

</body>
</html>


Output:
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both      spaces and
line breaks

Comments

Popular posts from this blog

Introduction and Format of HTML

Headings In HTML

Strong big and small tags in html