Learn how to write a short hints in the input fields for user understanding when filling any application.
Placeholder Attribute in HTML- Placeholder is an attribute that places in the input html tage
for example
<input placeholder=”text”>
text Specifies a short hint that describes the expected value of theinput field
Placeholder Describes a short hint in the input field for user understanding.
Simple HTML example
<html>
<body>
<input type="text" name="fname" placeholder="First name"><br>
<input type="text" name="lname" placeholder="Last name"><br>
<input type="search" name="q" placeholder="search content"><br>
<input type="tel" name="phone"placeholder="mobile Number with starting with 9 or 8 or 7">
</body>
</html>
Run the above code in html editor to see the output
when you type some thing in the input box , you will the not see the hint that present in the input box.