Html-Pre

Html-Pre

html – <pre> preformatting

Your HTML document is understood by a web browser as being one long line. Certainly, you may have tabs and line breaks in Notepad which straightens your content so it’s easier for you to read, but your browser overlooks those tabs and line breaks.

We showed you that you can get around this problem through utilizing the <br /> tag, but tabs and spacing are totally different from one another and can be completely harassing at times. Utilizing the <pre> tag is considered as a better solution, which stands for antecedently formatted text.

For any specific modifying condition where you wish to have the text seem exactly as it is typed use the <pre> tag. Spaces, tabs, and line breaks that exist in your real code will be preserved with the <pre> tag.

HTML Pre Code:

 

HTML Pre formatted Text:

Roses are Red,
     Violets are blue,
I am happy,
     But I love you!

Leave a Reply

Your email address will not be published. Required fields are marked *