<?xml version="1.0" encoding="utf-8"?>

Defining pre-formatted text

Defining pre-formatted text

Remember, when we told you that browsers have no remorse for extra spaces and lines and display the content in a single paragraph? Well, the <pre> (pref-formatted) element finds a way around this rule and allows developers to keep preformatted text and present it exactly as written in the HTML file with all white spaces. One thing to remember is that text uses a fixed-width font or monospace, like Courier. It's also a container element, so you should use both start and end tags.

Improve your UX & Product skills with interactive courses that actually work