Define a single-line text field that a user can enter text into.
The <input type="text">
defines a single-line text field.
The default width of the text field is 20 characters.
Tip: Always add the <label>
tag for best accessibility practices!
<input type="text">
Example:
HTML
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname">
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |