+ 5
What is pre tag ??
4 Respostas
+ 4
it used to write preformatted text which is a text in a fixed width and font
usualy used for codes or sentences which needs to be in a different format
+ 3
It is similar as paragraph tag <p> but the main difference is it also take space.It basically print the code as it is written by you in source code.
+ 1
<pre> tag :
It is a tag used to define predefined text. The text written within this tag will be reflected on the Web page in the same manner as it has been written in the code.
0
pre means preserve i.e the text that write in pre tags remains and as output you will get the same answer e.g
<pre> baba black sheep
have you any wool
.......
</pre>
as output same text display in browser