+ 1
Tags
What is the tags used to get text pre-formatted
1 Answer
+ 7
HTML has two tags to make text pre-formatted. They are <pre> and <span>. Tag <pre> is a block tag and <span> is an inline one.
Compare
<p> I love
SoloLearn</p>
In browser it would be
I love SoloLearn
<pre>I love
SoloLearn</pre>
In browser it would be:
I love
SoloLearn
<p>I <span>love SoloLearn</span></p>
It would be:
I love SoloLearn