Thuta Learning
IntermediateWeb Developmentbeginner

Input Types

Relax. We'll talk through this in plain words — no textbook voice.

<input> is the hero that does most of the work among form elements. type lets it switch between text, email, password, radio, checkbox, date, and more.

html
<input type="text" placeholder="Your name">
<input type="email" placeholder="you@example.com">
<input type="password" placeholder="Password">
<input type="date">
<input type="checkbox" id="agree">
<label for="agree">I agree to the terms</label>
You should see
The browser will display each input type with its own matching UI.
Input Types | Thuta Learning