Lessons
|
Comments
The comment tag is used to insert comments into the html source code. Comments are not displayed in the browser window. You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.
Comments are a great asset to new developers and a great way to place little notes to yourself reminding yourself what pieces of code are doing what. Comments are also great ways to troubleshoot bugs and code errors, as they give you the ability to comment out lines of code one at a time to search for the exact line that is causing problems. Comments HTML
Web Page
Notice how the comments do not display in the browser window.
|