You are developing a customer contact form that will be displayed on a page of a company’s
website. The page collects information about the customer.
If a customer enters a value before submitting the form, it must be a valid email address.
You need to ensure that the data validation requirement is met.
What should you use?
1. <input name=”email” type=”input” required=”required”/>
2. <input name=email” type=”url” required=”email”/>
3. <input name=”email” class” email”/>
4. <input name=”email” type=”email”/>
Answer: D
4 (D) is correct