Forms are used to collect input from users. HTML provides a variety of input types, and you can validate them to make sure the user provides the correct information.
<form> - Defines an HTML form used to collect user input.
<input type="text"> - Creates a text input field.
<input type="email"> - Defines an email input field with built-in validation.
<input type="password"> - Defines a password input field.
<input type="submit"> - Defines a button to submit the form.
required - This attribute makes an input field mandatory to fill before submitting the form.
pattern - Defines a regular expression to validate the input.
minlength & maxlength - Specify the minimum and maximum length of input.