0 votes
155 views
in Practice Questions by (98.9k points)
edited
Consider the following form control in a HTML form:

〇 Male

〇 Female

Now choose the correct line of code for the above :

(a) <input type = “radio” name= “Gender” value= “male”>Male<br>

<input type = “radio” name= “Gender” value= “female”>Female<br>

(b) <input type = “radiobutton” name= “Gender” value= “male”>Male<br>

<input type = “radiobutton” name= “Gender” value= “female”>Female<br>

(c) <input type = “radio”, name= “Gender”>< value= “male”>Male

<input type = “radio”, name= “Gender”>< value= “female”>Female

(d) <input type = “radio” name= “Gender” value= “male”><br>

<input type = “radio” name= “Gender” value= “female”><br>

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer

Correct option is (a) 

<input type = “radio” name= “Gender” value= “male”>Male<br> 

<input type = “radio” name= “Gender” value= “female”>Female<br>

Related questions

0 votes
1 answer 189 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

561 users

...