+ 3
how to add text on top of an input field?
how to add text on top of an input field?
3 Answers
+ 4
<form>
<label>Name:</label>
<input type="text">
</form>
Or you can use placeholder
<form>
<input type="text" placeholder="Name:">
</form>
+ 4
You can use label element just before the input element like so :
<label>Email</label>
<input />
+ 1
Type label:
<label>UserName</label>
<input type="">