Commenting in HTML5
SLVIKI
6:15 PM
0
Developers use comments to note the behind the scenes information
about the page or about the code. next thing is the comment does not
show in the web page. that's why it is mentioned as behind the scenes
element. so this is how the comment works,
copy this code or type this code in to your text editor. and then save it in .html extension as usual.
The text with <!-- ..........--> is called the comment. the browser ignore them and display the rest.
so the output will be like this.
So this is how the comment was made, It is not necessary to comment all the time in your code. But using comments inside your code makes easy to clarify your code and anyone can understand the code easily.
So that is the importance of commenting!!
No comments