Share on Google+Share on Google+

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

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>
      <title>Example of pre Tag</title>
   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.


Download This Example.

Difference between html4.01 and html5:

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


Posted on: September 14, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial 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.


Advertisement null