MoreLesson 173Free preview
Email Field
This lesson is part of How To · All levels
Summary
This lesson discusses email input, which is a text column that uses the validation of the browser-built email format. Additional attributes such as multiple, required, and autocomplete make charging more convenient. Browser validation only helps on the client side, so the server still has to check the email address before saving it.
Key points
- Use the type="email" to allow the browser to check the basic format of the email address
- Multiple attributes allow multiple addresses to be separated by commas
- Autocomplete="email" helps automate charging and improves comfort
- Don't rely on browser validation alone; the server should re-check the email address
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.