0

What is use of placeholder ?

in basic coding

24th Sep 2017, 8:42 AM
vikrant rana
vikrant rana - avatar
3 ответов
+ 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>
24th Sep 2017, 8:59 AM
Daniel
Daniel - avatar
24th Sep 2017, 9:01 AM
Daniel
Daniel - avatar