Friday, December 11, 2015

Comment Tag in HTML5

The comment tag is utilized to embed comments in the source code. Comments are not shown in the programs. <!-- --> You can ut... thumbnail 1 summary

The comment tag is utilized to embed comments in the source code. Comments are not shown in the programs.

<!-- -->

You can utilize comments to clarify your code, which can help you when you alter the source code at a later date. This is particularly valuable on the off chance that you have a great deal of code.
Comments aren't shown in the program, they are essentially there for the software engineer's profit. Comments can support you, on the grounds that you can compose notes to yourself that clarify what the code does. This is particularly valuable when you have a great deal of code.
In fact, the comments tag is not really a tag. It is basically an intends to furnish designers with an approach to comment their code without it being rendered on the page. In this manner, there are no traits accessible for the comments tag.
Here is the Syntax for COMMENT TAG
1
<!-- -->
Below is complete syntax along with example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
     
    <head>
        <title>
        Page title will go here
        </title>
    </head>
     
    <body>
<!-- Code inside this tag, will not be rendered in the browser. -->
    This is test page
    </body>
     
</html>

No comments

Post a Comment