<?xml version="1.0" encoding="utf-8"?>

Single-line text fields

Single-line text fields

The attribute of an input defines its type. To add a single-line text field, add the attribute type with the value "text" to the <input> start tag.

Use text fields when you want users to enter short textual information like a name or address. For more specific types of data like dates, URLs, emails, or search terms, you've got better options available.[1]

Improve your UX & Product skills with interactive courses that actually work