Comments can make the HTML source codes more readable and easier to maintain. Any text enclosed in a single tag that begins with <!-- and ends with --> will be ignored by a Web browser. For example, the following statement will be completely ignored by a Web browser. <!--This is a comment.-->
The source codes below demonstrate the use of the comment tag:
Click here to review how the above document appears in a Web browser. Note that the two comment statements are not displayed. You may select Source from the View menu of your Web browser to review the HTML source code.
|