Multiple choice technology programming languages

How do we comment a line in html

  1. <!-- - - >

  2. <%-- --%>

  3. </* */>

  4. //

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

HTML comments use the syntax to hide content from browsers without deleting it. Option A shows this format (with unusual spacing). Option B is JSP comment syntax, C mixes invalid closing tag syntax with C-style comments, and D is for JavaScript single-line comments.

AI explanation

HTML comments are written as ; the browser ignores everything between the markers. The other options are wrong here: <%-- --%> is ASP.NET server-side comment syntax, * */> is not valid HTML or CSS syntax, and // is a JavaScript single-line comment, not an HTML one.