Tags | SoloLearn: Learn to code for FREE!



What is the tags used to get text pre-formatted

3/18/2019 11:44:19 PM

Christopher Senbore

1 Answer

New Answer


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