+ 5

How to make textbox with value "password" and the value disappear when I start to write text in html web? Please write the code

5th Mar 2017, 1:58 PM
Kirollos Ayman
4 Respostas
+ 8
use placeholder property in input: <input type="password" placeholder="Password">
5th Mar 2017, 2:09 PM
Burey
Burey - avatar
+ 3
thanks for your answer
5th Mar 2017, 8:27 PM
Kirollos Ayman
+ 2
thanks for your answer
7th Mar 2017, 12:54 PM
Kirollos Ayman
0
<input type="password" placeholder="Password"> since you're working with PHP and MySQL, you can add name attribute: <input type="password" name="mypass" placeholder="Password">
7th Mar 2017, 2:24 AM
Ezekiel Oladejo
Ezekiel Oladejo - avatar