Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
101 UX Principles – 2nd edition - Second Edition

You're reading from  101 UX Principles – 2nd edition - Second Edition

Product type Book
Published in May 2022
Publisher Packt
ISBN-13 9781803234885
Pages 454 pages
Edition 2nd Edition
Languages
Author (1):
Will Grant Will Grant
Profile icon Will Grant

Table of Contents (18) Chapters

Preface
1. UX Field 2. Typography 3. Controls 4. Content 5. Navigation 6. Iconography 7. Input 8. Forms 9. User Data 10. Progress 11. Accessible Design 12. Journeys and State 13. Terminology 14. Expectations 15. UX Philosophy 16. Other Books You May Enjoy
17. Index

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 addresses are all valid domains (please don’t email these people, in case they are real!), but the TLD list changes all the time, so good luck writing the JavaScript to...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}