Whats the use of the <pre> tag in HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Whats the use of the <pre> tag in HTML?

<pre> tag

6th Sep 2017, 9:42 PM
Styxincewa
Styxincewa - avatar
3 Answers
+ 7
<pre> is to show spaces and line break as you typed in your html file, without it, html delete any linebreaks of your text and delete any spaces except one space
6th Sep 2017, 10:19 PM
Mohammad
Mohammad - avatar
+ 3
what does the <pre> tag do?
6th Sep 2017, 9:42 PM
Styxincewa
Styxincewa - avatar
+ 3
so it displays it how it's written in the tag on the webpage
6th Sep 2017, 10:20 PM
Styxincewa
Styxincewa - avatar