Explore 100's Of Free Video Tutorials

Keep Learning, Keep Coding & Keep Sharing

Text field


HTML - form tag and HTML input tag
How to create text box using html input tag?
html input tag: is used to create various form fields
type="text" : creates a text box
maxlength : controls the number of character to be input
value : default value of the input field
name: uniquely identify the field in scripts
id: uniquely identify the field in scripts

Interview Questions:

1.The ______ attribute of HTML input tag specifies the default value.
a. placeholder
b. default
c. value
d. required
Answer: c