0

Displaying username and password in the check box for web pages in html

Is there way to display the word "username" or "password" in the checkbox,When using html <form> <input type="text" name="USERNAME" /><br /> <input type="password" name="Password" /> </form> It shows that the name should come up as username/password but it doesn't.

1st Jan 2018, 6:42 PM
Jared Primo
Jared Primo - avatar
3 Respuestas
+ 3
You can use the value attribute to actually put those values within the text box field or you can also use the placeholder attribute to put the values in the boxes but once you start typing, the previous value is overwritten.
1st Jan 2018, 6:44 PM
Tarantino
Tarantino - avatar
+ 3
Ya, sounds like you want placeholder. <form> <input type="text" name="username" placeholder="Username"/> <input type="password" name="password" placeholder="Password"/> </form>
1st Jan 2018, 6:50 PM
ChaoticDawg
ChaoticDawg - avatar
0
Thank u, I was just about to post that I just stars the last few HTML lessons, Thank u again for your time
6th Jan 2018, 12:30 AM
Jared Primo
Jared Primo - avatar