Friday, 3 February 2017

HTML 5 COMMENTS

Comments are non executable statements or ignore statements; with the help of these comment notations we can declare customized statements in the source code. HTML 5 supports 1 comment notation for single and multiline query.

Example –
<html>
          <head>
                   <title>HTML comments</title>
          </head>
          <body>
                   <!-- Single line comment -->
                   <!-- Multiline
                             comment -->
          </body>
</html>


Note – Comments are not applicable in the title part. It will display in the title.

No comments:

Post a Comment