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 ::first letter Selector

CSS ::first-letter Selector

 

 

The ::first-letter selector is used to add a style to the first letter of the specified selector. We can use many properties with this selector including font, color, background, margin, padding, border, float, clear, text-decoration, vertical-align, text-transform, and line-height.

 

Syntax:-

 

Its syntax is:-
::first-letter {
  css declarations;
}

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS