You need to ensure that the data validation requirement is met

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?

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?

A.
<input name=”email” type=”url”/>

B.
<input name=”email” type=”text” required=”required”/>

C.
<input name=”email” type=”text”/>

D.
<input name=”email” type=”email”/>

Explanation:

Reference:
http://www.w3schools.com/html/html5_form_input_types.asp



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Mahfuz

Mahfuz

D

Levi

Levi

No, not B, the correct answer is B!!

Levi

Levi

Hmm.. well, but B is not a type=”email”

VladimirV

VladimirV

It says “If a customer enters a value before submitting the form” which mean it is not required to enter email at all. D is correct.

anii

anii

I think Levi was being sarcastic…