Pr.Pg Next Pg

<PRE> . </PRE> tag tutorials

  • This is a paired tag. Its opening and closing tags are given as above.

  • It stands for Pre-formatted text. This tag element is used to displayed text the way we type it.

  • If <PRE> tag is not given then it will display the text continuously without line break.

 

Syntax:

<body>

<pre>

some text

.

</pre>

</body>

 

Example: HTML program to demonstrate PRE tag

Output:
Pr.Pg border                                              Next Pg