- 1
Which code is used for password in html
3 Respuestas
+ 1
<form>
<input type="password"></input>
</form>
try it yourself there:
https://code.sololearn.com/WEhS3Lm7k2Dx/?ref=app
+ 1
Simply use this.
<form>
<label>Password</label>
<input type="password" id="pwd" placeholder="Please enter your password" required />
<input type="submit" value="Submit"/>
</form>
You can copy this code and run to see the output.
The required attribute works like JavaScript such that the user cannot submit or register without filling the password.
Placeholder is the text that will be displayed on the password field.
0
<input type ="password"> </input> its a simplest code...