+ 1
Whats the use of <pre> tag in html?
2 Answers
+ 4
The HTML <pre> tag is used for indicating preformatted text. The code tag surrounds the code being marked up. Browsers normally render pre text in a fixed-pitched font, with whitespace in tact, and without word wrap.
HTML pre Tag - TutorialsPoint
https://www.tutorialspoint.com/html/html_pre_tag.htm
+ 1
This tag take care of all the spaces, tabs and next lines. So it'll help in preserving the format of text you wrote in the code.