Jump to: navigation, search

HTML Pre

From w3cyberlearnings

Contents

HTML - <pre> tag

A <pre> tag uses to preformatting your HTML documents. You do not need to use the <br/> and <p> with <pre>. The <pre> tags formats the text as what you have typed. Check the example for additional information.

HTML - Syntax <pre> tag

<pre>
...
</pre>

Example 1


<html>
<head>
<title>pre</title>
</head>
<body>
<pre>
    Peace starts from very simple,
     It is from yourself...
   A peaceful heart will make a peaceful person.
     A peaceful person will make a peaceful family.
       A peaceful family will make a peaceful community.
         A peaceful community will make a peaceful nation.
           A peaceful nation will make a peaceful world.
             We all live in a peaceful word. God blesses everyone!
 
</pre>
</body>
</html>

Output

Html pre 1.png

Related Link


Navigation
Web
SQL
MISC
References