Web Development HTML/CSS Objective
Mar 29, 2013

You placed four radio buttons on a web form. You want the users to specify whether they are male or female and whether they are married or single. The code is as follows:
Male: <input type="radio" checked name="chk" value="male">
Female: <input type="radio" name="chk" value="female">
Married: <input type="radio" checked="checked" name="chk" value="married">
Single: <input type="radio" name="chk" value="single">
What is wrong with the above code?

Choose the correct answer:
A) It will allow the user to choose only the male and the married options.
B) It will allow the user to choose only the female and single options.
C) It will allow the user to choose only one option out of the four.
D) It will allow the user to choose all the four options at the same time.
Detailed Explanation

Option c is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback