HTML:-Code tag

<!DOCTYPE html>
<html>

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

<body>

 Usually programming code are written inside the code tag.
 <br>
 <code>
var a=10;<br>
var b=30;<br>
var c=0;<br>
c=a+b;<br>
alert(c);<br>
  </code>

</body>

</html>       Output:-  Usually programming code are written inside the code tag. 
var a=10;
var b=30;
var c=0;
c=a+b;
alert(c);    Definition:- 

Code Tag


Uses of <code> tag
  • It is a phrase tag. It defines a piece of computer code.
  • This tag is not deprecated, but it is possible to achieve richer effect with CSS.
HTML:-Code tag HTML:-Code tag Reviewed by Network security on April 29, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.