The ::first-line pseudo-element describes the contents of the first formatted line of an element.

::first-line {
    css declarations;
}
p::first-line {
   color: #3366ff;
   background: #ffff99;
}

Click the button below to experiment with this selector.

Give it a Try!

1.0Firefox 9.0Explorer 1.0Chrome 1.0Safari 7.0Opera