Advertisements
Advertisements
Question
A developer can restrict the values accepted in a text field by specifying a ______ attribute.
Options
size
maxlength
value
You cannot restrict text values using HTML
MCQ
Fill in the Blanks
Advertisements
Solution
A developer can restrict the values accepted in a text field by specifying a maxlength attribute.
Explanation:
By defining a maxlength attribute, a developer can limit the values that can be entered into a text field. It indicates how many characters the user may type into the text area.
shaalaa.com
Is there an error in this question or solution?
