Which HTML markup should you add to the application?

You develop an HTML5 application for a company. Employees must enter a personal identification number
(PIN) in an INPUT element named SecurityCode to access their employee records.
The SecurityCode element must meet the following requirements:
Allow up to 6 digits.
Do not display numbers as they are entered.
Display the text Enter PIN Code before the user enters any data.
You need to implement the SecurityCode element.
Which HTML markup should you add to the application?

You develop an HTML5 application for a company. Employees must enter a personal identification number
(PIN) in an INPUT element named SecurityCode to access their employee records.
The SecurityCode element must meet the following requirements:
Allow up to 6 digits.
Do not display numbers as they are entered.
Display the text Enter PIN Code before the user enters any data.
You need to implement the SecurityCode element.
Which HTML markup should you add to the application?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

E.
Option E

Explanation:
* Input Type: password
<input type=”password”> defines a password field.
The characters in a password field are masked (shown as asterisks or circles).
* The placeholder attribute specifies a short hint that describes the expected value of an input field (e.g. a
sample value or a short description of the expected format).
The short hint is displayed in the input field before the user enters a value.
The placeholder attribute works with the following input types: text, search, url, tel, email, and password.
HTML Input Types ; HTML <input> placeholder Attribute



Leave a Reply 0

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