Which HTML element should you use?

You develop an HTML5 application. You give users a numeric access code that can be used only one time.
Users must enter the numeric access code in the login form of the application. The numeric characters must be
hidden by a masking character.
You need to implement the form element for users to enter the code.
Which HTML element should you use?

You develop an HTML5 application. You give users a numeric access code that can be used only one time.
Users must enter the numeric access code in the login form of the application. The numeric characters must be
hidden by a masking character.
You need to implement the form element for users to enter the code.
Which HTML element should you use?

A.
<input type=”password” required autocomplete=”off”>

B.
<input type=”input” autocomplete=”off” required />

C.
<input type=”password” stytem” visiblity:hidden;” required />

D.
<input type=”button” value=”password” required />

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 autocomplete attribute specifies whether or not an input field should have autocomplete enabled.
The autocomplete attribute works with the following <input> types: text, search, url, tel, email, password,
datepickers, range, and color.
HTML Input Types ; HTML <input> autocomplete Attribute



Leave a Reply 0

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