Computer Applications
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
HTML Advanced Features
1 Like
Answer
maxlength
Reason — A developer can restrict the values accepted in a text field by specifying a maxlength attribute. It specifies the maximum number of characters a user can enter into the text box.
Answered By
1 Like
Related Questions
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">
Consider the following form control in a HTML form :
x Male x FemaleNow 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">Female4.
<input type = "radio" name= "Gender" value= "male"><br> <input type = "radio" name= "Gender" value = "female"><br>You can mask the input typed into a text field by specifying an
<input>tag as …………… .- password
- secure
- invisible
- hidden
Tag to create password field in HTML document :
<password><input><pwd><pword>