🖼️Text Input
Also known as Text Field, Input Field, Text Box
A one-line box where you type a short answer, like your name.
Think of it like
It is like a blank line on a paper form. You write one short answer on it.
Example
A sign-up form uses an email input. On a phone, the keyboard shows the @ key right away.
Why it matters
Most forms are text inputs. Small details in them decide how fast people finish.
Definition
Example code
html
<label for="email">Email</label>
<input id="email" type="email" autocomplete="email">Try it
Widths
A four character box says: four characters.
Type in them. A box as wide as its answer tells the reader how much is wanted.
Common mistake
Key takeaways
- 1One short answer. A single line.
- 2Label above. Always visible.
- 3Right type. Brings the right keyboard.