<pre>: The HTML Preformatted Element
1 Description
The <pre>
element is used to hold text which should be displayed
exactly as written. The contents of the <pre>
element are typically
rendered in a monospace font by web browsers.
2 Examples
<!DOCTYPE html>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<h1>A Basic C Program</h1>
<code>
<pre>
#include <stdio.h>
int main() {
printf("Hello World!");
return 0;
}
</pre>
</code>
</body>
</html>
This document was last updated: