Preserve Formatting Tag

  Eduaction Management 959 Lahore

Code With Jahangir 

Preserve Formatting Tag

FREE COURSES 

FREE CERTIFICATE 

Preserve Formatting Tag

To put the exact code of any language use <pre> tag on your HTML page.

 

  

                         

<pre> tag:   “used to put the exact code on an HTML page”

Syntax: 

<pre>
//code of any programming language
</pre>

 

Preserve formatting itself defines preserving the format of the source document. The <pre> tag is used to put your content the same as it is on your HTML page. This tag has both an opening and a closing tag. Sometimes we need our text to be written on our HTML page the same as it is for that we use the <pre> tag.

 

Refer to the video to understand clearly:

 

Eduaction Management 959 Lahore

Code With Jahangir 

Preserve Formatting Tag

FREE COURSES 

FREE CERTIFICATE 

Previous Post Next Post

Contact Form