@hannah-saurusrexSubmitted almost 5 years ago
Curious how to ensure all email addresses include "@blank." com, org etc.
Curious how to ensure all email addresses include "@blank." com, org etc.
If you set type="email"
for the email input element, the browser will check that the user entered a valid email address automatically. You can then use the :valid
and :invalid
CSS pseudo-classes to style the input accordingly.
More info here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email.
Hope that helps!