Grokking HTML
Vote

0% completed

​

Form Validation

Type ana@example into an email box, press the submit button, and Chrome accepts it with no message. Type ana.example.com instead, and Chrome stops the form and shows a message: "Please include an '@' in the email address." Both addresses are wrong, yet the browser catches only one of them.

The reason is that the browser's check for type="email" is deliberately simple: it requires some text, an @, and a domain name after it. That simple check shows the main idea of this lesson

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content