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.
3 odpowiedzi
+ 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.
+ 3
Ya, sounds like you want placeholder.
<form>
<input type="text" name="username" placeholder="Username"/>
<input type="password" name="password" placeholder="Password"/>
</form>
0
Thank u, I was just about to post that I just stars the last few HTML lessons, Thank u again for your time