-->
Showing posts with label code tag. Show all posts
Showing posts with label code tag. Show all posts

HTL page with coding lines

How can we put codes in same way as we write in real code editor? For this we use code tag.
-------------------------------------------------------------------------------------------------------------------
<html>

<head>
    <title>
        understanding about code tag
    </title>
</head>

<body>
    <code><!--tag to put our code here. it looks like our code terminated by semi-colon-->
    a=3<br><!--assigning 3 to variable a-->
    b-12<br><!--assigning 12 to variable b-->
    c=a+b<br>
    </code>
    <!-- closing of code tag-->
</body>

</html>