Which HTML input type creates a password field?
-
A
type="text"
-
B
type="password"
Correct answer
-
C
type="email"
-
D
type="number"
Correct answer
B. type="password"
12 views
Explanation
type="password" masks the input characters. Source: Standard HTML content (FBISE-aligned).
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ