p:first-line { background-color: red; } p::first-line { background-color: lime; }