I have the following input field:
<input
type="email"
id="emailAddr"
name="emailAddr"
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$"
placeholder="name@domain.com"
/>
Surprisingly, it allows me to enter the empty email field, whereas if I type something and submit it, it shows an error if the email is not valid.