How to include comments in HTML?
Submitted by: AdministratorTechnically, since HTML is an SGML application, HTML uses SGML comment syntax. However, the full syntax is complex, and browsers don't support it in its entirety anyway. Therefore, use the following simplified rule to create HTML comments that both have valid syntax and work in browsers:
An HTML comment begins with "<!--", ends with "-->", and does not contain "--" or ">" anywhere in the comment.
The following are examples of HTML comments:
► <!-- This is a comment. -->
► <!-- This is another comment,
and it continues onto a second line. -->
► <!---->
Submitted by:
An HTML comment begins with "<!--", ends with "-->", and does not contain "--" or ">" anywhere in the comment.
The following are examples of HTML comments:
► <!-- This is a comment. -->
► <!-- This is another comment,
and it continues onto a second line. -->
► <!---->
Submitted by:
Read Online Web Development Job Interview Questions And Answers
Top Web Development Questions
☺ | How to include comments in HTML? |
☺ | Define JavaScript? |
☺ | How you create arrays in JavaScript? |
☺ | What is the relationship between JavaScript and ECMAScript? |
☺ | What is w3c? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |