Home Tutorial Html Html5 HTML5 pre tag, Example of <pre> tag in html5

 
 

Share on Google+Share on Google+
HTML5 pre tag, Example of <pre> tag in html5
Posted on: September 14, 2010 at 12:00 AM
Advertisement
In this illustration, We will inform you about the <pre> tag in html5.

HTML5 pre tag, Example of <pre> tag in html5

In this illustration, We will inform  you about the <pre> tag in html5.This tag is used for specifying  the preformatted text in the html document. The text will be displayed in the browser in fixed- pitch font. Line breaks and white spaces in the text enclosed within the <pre> tags is maintained as it is in the html document when displays on the browser. The text is represented in the typographic font style just as a computer code. This tag must have both opening and closing <pre> tag.

Declaration Syntax:

The syntax for the <pre> tag is as:

<pre> Your Text Here</pre>

This tag don't have any specific attribute.

Example: pre_tag.html.

<!DOCTYPE html>
<html>
  <head>
      <title>Example of pre Tag</title>
  </head>
  <body>
  <pre>
   We have large number of links to the tutorials on html5,
   Which will help you learn html5 in better way.
   You will find these links very useful.
   </pre>
  </body> 
</html>

Output:

Download This Example.

Difference between html4.01 and html5:

The width tag is not supported by html5 instead fo it use css.

Advertisement

Related Tags for HTML5 pre tag, Example of <pre> tag in html5:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 14, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com