मराठी

Consider the following form control in an HTML form: ☆ Male ☆ Female Now choose the correct line of code for the above:

Advertisements
Advertisements

प्रश्न

Consider the following form control in an HTML form:

☆ Male
☆ Female

Now choose the correct line of code for the above:

पर्याय

  • <input type = "radio" name= "Gender" value= “male">Male<br>
    <input type = "radio" name= "Gender" value= "female">Female<br>
  • <input type = "radiobutton" name = "Gender" value= "male">Male<br>
    <input type = "radiobutton” name = "Gender" value= "female”>Female<br>
  • <input type = "radio", name = "Gender">< value= "male">Male
    <input type = "radio”, name = "Gender">< value= “female”>Female
  • <input type = "radio" name= "Gender"value= "male"><br>
    <input type = "radio" name= "Gender" value = "female"><br>
MCQ
Advertisements

उत्तर

<input type = "radio" name= "Gender" value= “male">Male<br>
<input type = "radio" name= "Gender" value= "female">Female<br>

Explanation:

To make two mutually exclusive choices (Male/Female), you give both inputs the same name attribute (here name="Gender"); that groups them so only one can be selected at a time. Each input should have an appropriate value attribute (e.g., value="male" and value="female"). Option (a) shows the correct syntax and grouping.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: HTML- III: Audio, Video and Forms - Assisted Practice [पृष्ठ २२९]

APPEARS IN

सुमिता अरोरा Computer Applications [English] Class 10
पाठ 5 HTML- III: Audio, Video and Forms
Assisted Practice | Q 10. | पृष्ठ २२९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×