You need to ensure that the value that the user enters contains a secure URL

You develop a webpage by using HTML5. You create the following markup:
<input type “url” name= “website” required=”required” />
You need to ensure that the value that the user enters contains a secure URL.
What should you do?

You develop a webpage by using HTML5. You create the following markup:
<input type “url” name= “website” required=”required” />
You need to ensure that the value that the user enters contains a secure URL.
What should you do?

A.
Add the following attribute to the input tag: value=”https://v

B.
Add the following attribute to the input tag: pattern=”https://.+”

C.
Add the following attribute to the input tag: value=”ssl”

D.
Add the following attribute to the input tag: itemtype=”https”

Explanation:
Note:
* The pattern attribute is supported in Internet Explorer 10, Firefox, Opera, and Chrome.
* The pattern attribute specifies a regular expression that the <input> element’s value is
checked against.
* The pattern attribute works with the following input types: text, search, url, tel, email, and
password



Leave a Reply 0

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