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

The required attribute

If you want to ensure users fill in a particular field, add the required attribute to that field. It won't let users submit the form before they specify a value for the input. The most common required fields are name, phone number, email, and password — among others.

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