Knowee
Questions
Features
Study Tools

What is the correct way to comment out multiple lines of HTML code?Options<!-- This is a comment -->// This is a comment# This is a comment/* This is a comment */

Question

What is the correct way to comment out multiple lines of HTML code?Options<!-- This is a comment -->// This is a comment# This is a comment/* This is a comment */

🧐 Not the exact question you are looking for?Go ask a question

Solution 1

The correct way to comment out multiple lines of HTML code is:

<!-- This is a comment -->

This is the only option that is valid in HTML. The other options are used in other programming languages, but not in HTML.

Solution 2

The correct way to comment out multiple lines of HTML code is:

<!-- This is a comment -->

This is the only option that is valid in HTML. The other options are used in other programming languages, but not in HTML.

Similar Questions

How to insert a multi-line comment in JavaScript?

How can comments be implemented in PHP?Question 11Select one:a.// commented code to the end of the lineb./* commented code can be on multiple lines */c.# commented code to the end of the lined.All of the above

or writing single line comments which of the following is correct:Options ://\* *\/* *//* /*

What is a correct way to add a comment in PHP?Question 13Select one:a. <comment> </comment>b.<!-- -->c.*\ *\d./* */

How do you comment out multiple lines in a shell script?

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.