Semantics of the tag

2 days ago 3
ARTICLE AD BOX

I'm curious about the semantics of the <pre> tag. It seems to achieve nothing which CSS cannot:

code.block { white-space: pre; } .poem { font-family: monospace; white-space: pre; } <pre><code>fn main() { println!("Hello, world"); }</code></pre> <code class='block'>fn main() { println!("Hello, world"); }</code> <pre>Gently through the wind floats a little she-oak twig bound for the cold ground.</pre> <p class='poem'>Gently through the wind floats a little she-oak twig bound for the cold ground.</p>

It smells to me like a holdout presentational attribute, kin of <font> and <marquee> , which somehow survived the introduction of HTML5.

What is the reason it is still standard?

Read Entire Article