Back to Concepts

<input>

An input field.

The `<input>` tag specifies an input field where the user can enter data. The `<input>` element is the most important form element. The `<input>` element can be displayed in several ways, depending on the `type` attribute.

In The Wild

Seen in: Google

Search Bar

The most famous <input> in the world. It accepts text and sends it to find your answers.

📱

Live Example & Code

Preview Output
<input type="text" placeholder="Enter text here">
HTMLViz
© 2026 HTMLViz. Open Source Learning.