Skip to Content
101 UX Principles – 2nd edition - Second Edition
book

101 UX Principles – 2nd edition - Second Edition

by Will Grant
May 2022
Beginner
454 pages
4h 19m
English
Packt Publishing
Content preview from 101 UX Principles – 2nd edition - Second Edition

#42

Don’t Attempt to Validate Email Addresses

Your user is entering an email address and you’re thinking about writing some code to validate it (check that it’s in a sensible format and they haven’t entered gibberish or mistyped it). Think again.

It used to be so simple to validate email addresses on the client side. A little bit of JavaScript was all it took to check that the domain was in the format:

user@domain.tld

If it didn’t match this pattern, it wasn’t a valid email and the user couldn’t sign up. We used to only have a handful of top-level domains (TLDs). Now, we have over 1,000 TLDs, with more being added all the time:

stealthy+user@example.ninja 
stealthy+user@example.ninja
holidays@ .ws
email@www.co
website@email.website

The above ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

101 UX Principles

101 UX Principles

Will Grant
Lean UX, 3rd Edition

Lean UX, 3rd Edition

Jeff Gothelf, Josh Seiden

Publisher Resources

ISBN: 9781803234885