In this I will teach all about HTML5 placeholder attribute. We will learn what it is and how we can style it using CSS>
What is Placeholder attribute?
The HTML5 placeholder attribute is used in input tags.The placeholder attribute specifies a short hint that describes the expected value of an input field (e.g. a sample value or a short description of the expected format).The short hint is displayed in the input field before the user enters a value.
The placeholder attribute works with the following input types: text, search, url, tel, email, and password.
Styling Placeholder Attribute using CSS
Placeholder attribute can be styled using ::input-placeholder psuedo-element.
CSS properties supported by ::input-place are: