CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS ::placeholder Selector

CSS ::placeholder Selector



The ::placeholder selector is used to selecting form elements with placeholder text and allows us to style the placeholder text. It is actually a text that is set by the placeholder attribute and it specifies a hint to describe the expected value in the input.




Its syntax is:-
::placeholder {
  css declarations;

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS