Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How Do You Comment In HTML — Website Tips?

0
Posted

How Do You Comment In HTML — Website Tips?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.