How to Use Pre Tag In Html



How to Use Pre-Tag In Html

The HTML pre-tag is used for indicating a preformatted text. The pre-tag surrounds the code being marked up as preformatted.

Browsers normally render pre-text in a fixed-pitched font, with white space intact, and without word wrap.
By default, text inside pre element is displayed as it is in the source, so having a line of text that’s wider than the width of the containing pre element will mean the line will flow out of its container.Pre tag is used for fixed text style.
The PRE element tells visual user agents that the enclosed text is "preformatted". When handling preformatted text, visual user agents: * May leave white space intact. * May render text with a fixed-pitch font. * May disable automatic word wrap.
* Must not disable bidirectional processing.

Thank you for watching. I hope you Like It. For more tutorials please visit my channel on EduTech.


Post a Comment

Thanks for touching with us.

Copyright © EduTech. Designed by | WebMyDesign
Edutech