0

Preserve Formatting

what is preserve formatting in html

1st Jan 2017, 3:07 PM
Theo Reikeletseng
Theo Reikeletseng - avatar
2 Antworten
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.
1st Jan 2017, 3:41 PM
Alex Soh Chye Wat
Alex Soh Chye Wat - avatar
0
use the <pre> tag
7th Sep 2022, 12:58 AM
AZEEZ SAMAD AYOMIDE
AZEEZ SAMAD AYOMIDE - avatar