# Form Validation
---
## What is it?
Form validation is the process of checking if the data entered by a user is in the correct format. The form will display error messages if any fields do not pass the validation tests.
---
## What types of elements get validated?
a) All Form fields
b) In truth though you can validate anything that your applications need to insert text into. This just happens to be forms for simplicity.
---
## Lets be more specific.
Form fields are what we usually validate in our code.
Form Field Example:
```
Button
Select
Textarea
Input
```
---
## So, what inputs types do we validate?
Popular types
```
email
password
text
date
```
Lets look -> [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input)
{"metaMigratedAt":"2023-06-16T23:35:17.318Z","metaMigratedFrom":"Content","title":"Form Validation","breaks":true,"contributors":"[{\"id\":\"5e29e175-4809-4add-a41e-e8982dab52a9\",\"add\":787,\"del\":27}]"}