html Pre Tag

In the html <pre> tag is used to identify preformatted text and which tag is display font in fixed width and its give space and line breaks for paragraph text. In the <pre> tag width attribute not support in html.In which tag mostly we will use to display unusual text and computer codes.

The <pre> tag optional attributes is width and standard attributes are class, dir, id, lang, style, title and xml:lang and event attributes are onclick,ondblclick, onmousedown, onmousemove, onmouseout,onmouseover ,onmouseup,onkeydown ,onkeypress and onkeyup.

Syntax:

<pre>
  Text
</pre>

Example Code



<pre>
PHP Hypertext Preprocessor
   is a web development dynamic web scripting
programing language
   which can embedded into the HTML and
interacts with databases.
</pre>

Out Put:

	PHP Hypertext Preprocessor 
		is a web development dynamic web scripting 
	programing language 
		which can embedded into the HTML and 
	interacts with databases. 
				

In the above example <pre> tag has been added to "What is PHP ?" content.