CSS

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

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS ::before Selector

CSS ::before Selector

 

 

The ::before selector is used to insert something before the content of each selected element. For this purpose, we have to use the content property to specify the content to insert.

 

Syntax:-

 

Its syntax is:-
::before {
  css declarations;
}

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS