Web Design & Development

[ Web Design & Development Topics ]

Comments in HTML

Comments in HTML are not visible to the end user via the Web browser. Comments are only visible if you look at the source code. It is advised to use comments in your code to remind yourself or let others easily spot where relevant information lies. It is also useful to "comment out" code when you might not want it to appear for a time period, but know you will want to re-activate it later.

To make a comment in HTML use the format below:

<!-- Here is my comment-->