HTML <pre>
query_builder | Christopher PisaniThe HTML element <pre> displays text used with the element in it's original form served. Whitespace used inside this element is displayed exactly as written. The displayed text when rendered is shown in the monospace font. This is useful to show a piece of computer code, keeping the original form.
Important Note :
Code that uses < and > still renders in the element <pre>, so HTML entities should be used to cover this issue.
Replace < with <
Replace > with >
Example of PHP code inside the <pre> element
<pre>
if (condition) {
// code to be executed if condition is true;
}
</pre>
Available Attributes
No specific attributes are assigned for this element, other than the standard global attributes.