Get started

Get the tools and building blocks to design and develop consistent and accessible experiences.

Develop Design

Text input

How to create a standard text input field.

Guidance

Text field inputs are used for collecting short, single-line free-form text. Use a text field when you need users to enter a single line of text such as their name, email address or password. Be sure to set the type attribute on your inputs.


Text input

HTML

<!-- Text input -->
<label for="text-field">Field label</label>
<input type="text" name="text-field" id="text-field" />