pseudo-element
::first-letter — CSS reference
Targets the initial typographic letter of the first formatted line in an eligible block. Adjacent punctuation can be included; it is not simply the first DOM character. Only the applicable property subset affects layout.
Formal Syntax & Structure
css syntaxcss
p::first-letter { font-size: 2em; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a {font-size:16px} #a::first-letter {font-size:32px;color:#006050}</style><body><p id="a">A small story.</p></body></html>