+ 5

What is pre tag ??

31st Jan 2018, 9:45 AM
Aniket Mishra
Aniket Mishra - avatar
4 Respuestas
+ 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
31st Jan 2018, 9:51 AM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 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.
31st Jan 2018, 10:36 AM
Faisal Rahman
Faisal Rahman - avatar
+ 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.
31st Jan 2018, 2:35 PM
ARUSHI
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
31st Jan 2018, 7:52 PM
Asfand khan
Asfand khan - avatar