p { color: green; } p:first-line { background: red; color: yellow; font-size: 4em; } p::first-line { background: red; color: yellow; font-size: 4em; }