A little template for form validtaion
Basics Understand that every input element has attributes. And those attributes depend on one particular attribute within the the input element: the type attribute. Below is a link that contains details about form validation
https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation