KnowledgeBoat Logo
|

Computer Applications

Which tag is used to create a password field in HTML?

  1. <password>
  2. <input type = "password">
  3. <textfield>
  4. <input type = "text">

HTML Advanced Features

2 Likes

Answer

<input type = "password">

Reason — The password boxes are created using an <INPUT> element whose TYPE attribute has a value of "password". An example is as follows:

<INPUT TYPE = "PASSWORD" NAME = "PWD" />

Answered By

1 Like


Related Questions