MCQ
Single Best Answer
Not Set
Q12. How do we write HTML comments?
ID: #4781
HTML Basic MCQ
185 views
Question Info
#4781Q ID
Not SetDifficulty
HTML Basic MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option B
Explanation
Browsers will ignore comments in a code, and comments are used to add notes or explanations to the code for the benefit of the developer or other users who may be reading the code.
There are two types of comments in HTML: single line comments, which are denoted by the characters, and multiple line comments, which are denoted by the /* and */ characters.
To add a comment in the code, you can place the text between these characters and it will not be visible in the user's browser.
Comments are a useful tool for organizing and documenting code, and they can help make it easier to understand and maintain.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic