i dont know even how this is name. If i add here new question then i title is disappearing hits. I can add default value in input, but this isnt this. Here is another. How can i make this?
And how can i make this in input password? There is *, so how can i write in clean text?
Generally what this is name?
Thanks for help!
<form>
First name: <input type="text" name="firstname" value="First Name" /><br />
Last name: <input type="text" name="lastname" value="Last Name" /> <br />
Password: <input type="password" name="pwd" value="password" />
</form>
I think this is what you’re looking for:
However it will only work in some browsers.
So if you want to support the majority, you’ll need some js to pre-fill it. Google ‘html input hint’ or ‘placeholder’. There are js plugins for this out there.
Here’s a related stackoverflow thread:
How do I make an HTML text box show a hint when empty?