Computer Applications
Consider the following form control in a HTML form :
x Male
x 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>
2.
<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
4.
<input type = "radio" name= "Gender" value= "male"><br>
<input type = "radio" name= "Gender" value = "female"><br>
Related Questions
It is possible to set the width of a text by specifying a …………… attribute.
- limit
- size
- value
- maxlength
Which of the following tags will clear the contents of the form?
<INPUT TYPE="CLEAR" VALUE="Clear the form">
<INPUT TYPE="SUBMIT" VALUE="Clear the form">
<INPUT TYPE="RESET" VALUE="Clear the form">
<INPUT TYPE="BUTTON" VALUE= "Clear the form">
A developer can restrict the values accepted in a text field by specifying a …………… attribute.
- size
- maxlength
- value
- You cannot restrict text values using HTML
You can mask the input typed into a text field by specifying an
<input>
tag as …………… .- password
- secure
- invisible
- hidden