0
Preserve Formatting
what is preserve formatting in html
2 Answers
0
Hi,
here's a good example:
http://www.w3schools.com/tags/tag_pre.asp
Please press the "Try it yourself" button and see how the preformatted text preserves it's text formatting on the output page. As it explains, the <pre> preserves spaces and line breaks formatting in text.
Now, in the "Tryit Editor" page, try to change the <pre> tag to <p> (paragraph) and press "Run". Notice that the output text does not retain it's formatting.
0
use the <pre> tag