What is pre tag ?? | Sololearn: Learn to code for FREE!

+5

What is pre tag ??

1/31/2018 9:45:28 AM

Aniket Mishra

4 Answers

New Answer

+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