What is the use of tag <pre> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the use of tag <pre>

6th Oct 2017, 2:24 PM
Aravind
Aravind - avatar
2 Answers
+ 3
It allows easy,preformatted text so you don't need to play around a lot with tags and formatting
6th Oct 2017, 2:42 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
The <pre> tag defines preformatted text. Text in a <pre> element is displayed in a fixed-width font (usually Courier font), and it preserves both spaces and line breaks.
6th Oct 2017, 5:33 PM
Rishita
Rishita - avatar