Different input types
The input element supports different types such as text, email, password, number, date and checkbox.
Learn how websites are structured from the ground up using HTML. Build real pages while learning elements, attributes, links, images, forms, tables, semantic HTML and more.
Lesson 10 of 24
15 min learning time
The input element supports different types such as text, email, password, number, date and checkbox.
<input type="text" placeholder="Name">
<input type="email" placeholder="Email">
<input type="password" placeholder="Password">
<input type="number" placeholder="Age">
<input type="date">
<label>
<input type="checkbox">
I agree
</label>
Practical Exercise
Build a registration form containing at least five different input types.
Quick Check
Which input type is designed for email addresses?