what is <pre> tag used for?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

what is <pre> tag used for??

9th Jun 2016, 8:08 AM
Mohammad Fahad Sayed
Mohammad Fahad Sayed - avatar
3 Answers
+ 2
From W3: The <pre> tag defines preformatted text. Text in a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks.
9th Jun 2016, 11:25 AM
James Flanders
+ 2
It is used to preserve lines and spaces
9th Jun 2016, 6:55 PM
Say_Smile♡
Say_Smile♡ - avatar
- 2
space
9th Jun 2016, 9:48 AM
Aryan Raj
Aryan Raj - avatar