Wednesday, December 26, 2018

Pre tag use.

PARAGRAPH TAG:-

<html>
<body>

<h1>The pre tag preserves both spaces and line breaks:</h1>

<pre>
   My Name is Akash.

   My lovely Dog is ashu.

   My hobby is playing game.
 
   I like to tag other.
</pre>

</body>
</html>

OUTPUT:-


  • The HTML <pre> element defines preformatted text.
  • The text inside a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks

No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...