Text inputs in HTML
Single-line text fields and the attributes that make them pleasant.
<label for="name">Full name</label>
<input type="text" id="name" name="name" autocomplete="name"
maxlength="80" required>
<label for="handle">Handle</label>
<input type="text" id="handle" name="handle" spellcheck="false"
placeholder="ada" maxlength="20">
How it works
autocompletelets the browser fill known values.maxlengthcaps the length,requiredblocks an empty submit.placeholderis a hint, never a substitute for a label.
The run, in numbers
- Lines
- 7
- Characters to type
- 255
- Tokens
- 62
- Three-star pace
- 65 tpm
At the three-star pace of 65 tokens a minute, this run takes about 57 seconds.
Step 1 of 5 in Fields & labels, step 4 of 25 in Forms & inputs.