Jazzo.co.uk uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our Privacy Policy and our Terms & Condition.

HTML <pre>

query_builder | Christopher Pisani

The 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 &lt;
Replace > with &gt;
Example of PHP code inside the <pre> element

Available Attributes


No specific attributes are assigned for this element, other than the standard global attributes.