Question 32

Identify the error in the following HTML code: <HTML>

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> (a) NAME instead of ID and CHECKBOX instead of CHECKSELECT. (b) METHOD = GET instead of POST.
  1. AOnly (a) is correct
  2. BBoth (a) and (b) are correct
  3. COnly (b) is correct
  4. DThe code is correct and has no errors
Show answerHide answer

Correct answer: (A) Only (a) is correct

Explanation

Form controls need a NAME attribute to be submitted, and the input type for tick boxes is CHECKBOX. CHECKSELECT does not exist. METHOD = POST is valid, so only (a) is correct.

From DSSSB TGT Computer Science Practice Set 4

This is question 32 of DSSSB TGT Computer Science Practice Set 4. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.