What are the mandatory fields?
In every form we observe mandatory fields. When a mandatory field is available in the form, it means user should fill that field without fail. Leaving the mandatory fields will cause in non submission of the form.
How do you make all fields in a form mandatory?
Required attribute: If you want to make an input mandatory to be entered by the user, you can use the required attribute. This attribute can be used with any input type such as email, URL, text, file, password, checkbox, radio, etc. This can help to make any input field mandatory.