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.
- A.
Only (A) is correct
- B.
Both (A) and (B) are correct
- C.
Only (B) is correct
- 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.