Identify the error in the following HTML code: <HTML> <BODY> <FORM ID =…

2022

Identify the error in the following HTML code:

<HTML>

<BODY>

<FORM ID = "FORM1" METHOD = POST>

<BR> SELECT YOUR FAVOURITE CHANNEL :

NETFLIX <INPUT TYPE = CHECKSELECT>

AMAZON PRIME <INPUT TYPE = CHECKSELECT>

</FORM>

</BODY>

</HTML>

Statements:

(A) CHECKBOX should be used instead of CHECKSELECT.

(B) METHOD = GET should be used instead of POST.

  1. A.

    Only (A) is correct

  2. B.

    Both (A) and (B) are correct

  3. C.

    Only (B) is correct

  4. D.

    The code is correct and has no errors

Attempted by 212 students.

Show answer & explanation

Correct answer: A

Key idea: In HTML, CHECKSELECT is not a valid input type. The valid checkbox input type is type="checkbox".

Using ID="FORM1" in the <FORM> tag is valid, and METHOD=POST is also valid.

Final answer: Only statement (A) is correct.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Up Lt Grade Assistant Teacher 2025