0

what does actually comment tag does

like if we give coment tag <!--ocmment--> then what we get in output or where is a need of giving a comment tag

6th May 2018, 4:53 AM
Tirath Sharma
Tirath Sharma - avatar
5 odpowiedzi
+ 6
They do nothing by themselves, but when the html parser (i.e. web browser) encounters them, it skips everything inside the comments tag.
6th May 2018, 6:00 AM
DAB
DAB - avatar
+ 4
Comments are just for readability of your html code. You can for example describe what a section does, so it's easier to understand. It doesn't affect the output
6th May 2018, 4:56 AM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 4
it does nothing, but it actually helps user later when he uses file later. comments can be useful to find many different elements within our coding, when the coding is really large.
6th May 2018, 5:50 AM
Sanjeet
Sanjeet - avatar
+ 2
You get nothing in output. It is generally used to help others in understanding ur code
6th May 2018, 4:57 AM
Yugabdh
Yugabdh - avatar
+ 1
Comments can help you as well as other programmers to understand the logic behind your code. Just take a look at a program you wrote a view weeks ago. You will see a lot of question marks 😵
6th May 2018, 6:32 AM
Sebastian Keßler
Sebastian Keßler - avatar