1.

What Is The Main Function Of "pre" Tag In Html?

Answer»

"pre" tag DEFINES the pre-formatted text that is used to DISPLAY the text with the fixed width and uses a predefined fonts and it KEEPS both spaces and line breaks separate and SHOW the text as it is.
The code that can be used to display the text that can be written in whatever way the user wants is as follows:
<pre&GT;
Text in a pre element ----//
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks
</pre>

"pre" tag defines the pre-formatted text that is used to display the text with the fixed width and uses a predefined fonts and it keeps both spaces and line breaks separate and show the text as it is.
The code that can be used to display the text that can be written in whatever way the user wants is as follows:
<pre>
Text in a pre element ----//
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks
</pre>



Discussion

No Comment Found