How Do You Comment In HTML — Website Tips?
It can be helpful to add comments to your HTML code when building your website. Here’s how it’s done. . An html comment is useful to remind yourself what a particular section of code is doing (or is meant to do!). The comment will appear in the source code, but will not be rendered on the website. Use a comment tag in html coding as shown, with an exclamation point and dashes to offset your remarks (click on the image to enlarge). An example of source code for an html comment is shown (click on the image to enlarge). And here’s what the output looks like (click on the image to enlarge). Note that the comment remains invisible on the website, but is there as a helpful reminder to anyone checking the original code.
How Do You Comment In HTML — Website Tips?