Comments on HTML
How and when does one use the comment in HTML
Yes, that is what a comment is supposed to do: It doesn't affect the execution of the code. It describes parts of code.
<!-- idk, Wherever a comment seems like a good idea -->
I use comments to temporarily remove code that is misbehaving and to write <!--TODO-->
Oh I get now
This is how <! -- the comment goes here --> We use comments to help the other programmers who are checking your codes know what the code does or where it refers
I think comments depends on you the user. It solves many problems when you feel like using it, like someone else viewing your code, for better understanding. And also to set temporary values.
Right, the computer will pretend the comment doesn't exist, but a programmer might need it to understand the code.
You can basically put it wherever you need like if you need to put a note next to a line of code or section off different parts of your code. I use it a lot to make code areas that I need to clean up or areas where I want to change the elements in.
But it doesn’t really affect the state of the code
Alright then Thanks
Misbehaving as how?
Some times, an element isn't responsive, probably because of a bug in the code, so I comment it out and debug it later... Mostly it's spelling mistakes and trivial mistakes that would consume a lot of time identifying.