HTML Pre Tag
About the HTML pre Tag, its standard attributes, when and how to use it.
The HTML pre element is used to markup preformatted text. Many sites are also using it to markup code examples, by replacing them with > for ">" and < for "<".
Attributes
Standard Attributes
| Attribute: | Value: | Description: |
| Attrs | Global Attributes | Global, Event, I18n |
How to use HTML pre
The below shows how to markup code in HTML pages, using pre tags.
<pre>
<!DOCTYPE html>
<html lang="en">
<head>
<title>My first Website</title>
</head>
<body>
<p>My first Website.</p>
</body>
</html>
</pre>