You need toensure that the data validation requirementis 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 toensure that the data validation requirementis 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 toensure that the data validation requirementis 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:
Email
The HTML5 specification says that the email input type is designed to hold either a single email address or an
email address list.
<label for=”email”>Email contact</label>
<input type=”email” name=”email” id=”email”>
Mobile devices get the most benefit from this type of form field, because the virtual keyboard layoutschange to
make entering email addresses easier.



Leave a Reply 0

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