+ 2

"<!-- This is a comment -->" why to write this ?

<html> <head> <title>first page</title> </head> <body> <p>This is a paragraph </p> <hr /> <p>This is a paragraph </p> <!-- This is a comment --> </body> </html>

15th Apr 2017, 11:40 AM
Ashiesh Watts
Ashiesh Watts - avatar
4 ответов
+ 6
To demonstrate that anything between <! - - and - - > is a comment in html. Comments are written to provide additional information about the code and will not be executed
15th Apr 2017, 11:45 AM
Shraddha
Shraddha - avatar
+ 5
Yes
15th Apr 2017, 11:50 AM
Shraddha
Shraddha - avatar
+ 3
it helps us to comment on the page ??
15th Apr 2017, 11:49 AM
Ashiesh Watts
Ashiesh Watts - avatar
+ 2
comments are just to keep track of what you have made...suplose you have written like 3000lines of codes after that i asked you find the dection for your roll a dice button..then you can find that easily if you have placed any comments there
15th Apr 2017, 11:51 AM
ARNAB BISWAS
ARNAB BISWAS - avatar