Pre Tag in HTML || HTML Pre Tag
×

HTML PRE <pre> Tag

3000

HTML PRE <pre> tag is a block element that is responsible to locate the preformatted text, and this preformatted text is embedded into an HTML document. In order to display it in a fixed-width font, this tag is very useful.

This content is able to see in a monospace. User can only designate the <pre> tag and tags such as <small> <object> <sup> cannot be shown.

The <pre> tag in HTML needs to be closed so it contains both opening and closing tag as well. Also, as the <pre> tag generates automatic indents, there is no need to integrate block elements into the page as it will further generate more blank spaces.

Program:

<!DOCTYPE html>
<html>
  <head>
    <title>Pre Tag </title>
  </head>
  <body>
    <h2>Example of Pre Tag</h2>
    <pre>Codingtag
     is the E-learning website covering
       all aspects of technical and nontechnical
         tutorials including advanced programming,
           web Development language.
    </pre>
  </body>
</html>

Output:




Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments