0
Whats the essence of the comment code since it doesn't reflect on the browser
2 ответов
+ 1
When you enter the code source, comments will help in explaining and understanding the functionality of different parts, so you can easily change something etc. For example with a comment you can explain what this <div> does or something else. Changes need to be made in the code, not in browser, and the comments may not appear for security reasons ( if you means by pressing Ctrl + Shift + i).
0
comments are used for: 1. making you and other coders go through your code and understand 2. They can be used to summarize ypur code 3. You can use comments to debug(making a block of code a comment so you find out a problem in your code) 4. You can also use the comment tag to "hide" scripts from browsers without support for scripts (so they don't show them as plain text).