0
What is use of placeholder ?
in basic coding
3 Answers
+ 6
The placeholder attribute specifies a short hint that describes the expected value of a input field / textarea.
The short hint is displayed in the field before the user enters a value.
<form action="/action_page.php">
<input type="text" name="fname" placeholder="First name"><br>
<input type="text" name="lname" placeholder="Last name"><br>
<input type="submit" value="Submit">
</form>