Take a look at the following
form:
You cannot submit this form
without providing a name.
To do this, we use the required
attribute.
Here's another example:
This time we put the required
attribute on the select element.
We can put the required attribute
on input, select or textarea
elements.