Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
101 UX Principles – 2nd edition

You're reading from   101 UX Principles – 2nd edition Actionable Solutions for Product Design Success

Arrow left icon
Product type Paperback
Published in May 2022
Publisher Packt
ISBN-13 9781803234885
Length 454 pages
Edition 2nd Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Will Grant Will Grant
Author Profile Icon Will Grant
Will Grant
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface
1. UX Field FREE CHAPTER 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 $19.99/month. Cancel anytime