- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
How to add/use comments in HTML, CSS, PHP, JS
August 3, 2012
This tutorial is going to show you how to add and use comments in PHP, HTML, CSS, JS files.
A comment is a string of code or text within HTML, XML, CSS, JS and other programming languages that is not visible in your web browser. It serves to give some information about the code, to temporarily disable it, or to provide other feedback from the code developers.
HTML comment
Used to temporarily comment out elements that you might need later without removing them, write notes inside HTML, for debugging. Add the opening comment tag before your code and the closing tag — > after it.
Example: