Html:-pre tag

<!DOCTYPE html>
<html>

<head>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Pre Tag</title>
</head>

<body>

 <pre>
H
 A
  V
   E
    A
     N
      I
      C
     E 
    D
   A
 Y
  </pre>
 <br>
 <!--No Pre Tag-->
H
 A
  V
   E
    A
     N
      I
      C
     E 
    D
   A
 Y

</body>

</html>   output:-
H 
 A 
  V 
   E 
    A 
     N 
      I 
      C 
     E  
    D 
   A 
 Y 
  

H A V E A N I C E D A Y. Definition:-

Pre Tag


Uses of <pre> tag
  • This tag display text with unusual formatting, or some sort of computer code.
  • It is used for indicating pre-formatted text.
  • Browsers normally render pre text in a fixed-pitched font, with white-space in tact, and without word wrap.
Html:-pre tag Html:-pre tag Reviewed by Network security on April 29, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.