Preformatted text

pre

The pre element provides a mechanism to allow authors to intentionally disable the browser's automatic text layout algorithm.

The pre element honors the appearance of leading whitespace and line breaks in the writing.

Poets, mathematicians, software authors and others need a way to format text without relying on the concept of a paragraph. The pre element is the solution.

Example

h1 (Just Like) Starting Over

figure {
pre {
Our life together
Is so precious together
We have grown, we have grown
Although our love is still special
Let’s take a chance and fly away
Somewhere alone

It’s been too long since we took the time
No-one’s to blame, I know time flies so quickly
But when I see you darling
It’s like we both are falling in love again
It’ll be just like starting over
Starting over

Everyday we used to make it love
Why can’t we be making love nice and easy
It’s time to spread our wings and fly
Don’t let another day go by my love
It’ll be just like starting over
Starting over

Why don’t we take off alone
Take a trip somewhere far, far away
We’ll be together all alone again
Like we used to in the early days
Well, well, well darling

It’s been too long since we took the time
No-one’s to blame, I know time flies so quickly
But when I see you darling
It’s like we both are falling in love again
It’ll be just like starting over
Starting over

Our life together
Is so precious together
We have grown, we have grown
Although our love still is special
Let’s take a chance and fly away somewhere

Starting over (over and over and over)
}
figcaption John Lennon (Recorded: August 9, 1980)
}
The pre element
0

semantax > structure > prePreformatted text

🔗 🔎