The pattern HTML5 form attribute allows us to set a regex to check the input so it’s
It doesn’t check if an email address is using a valid TLD though.
This will allow the browser to check if it is valid using RFC 5322 If you have a form on your site requesting a users email address, then you should always use type='email' rather than type='text'.