Google News
logo
CSS3 - Interview Questions
How can you change the first line of paragraph color using css3?
The::first-line selector is used to add a style to the first line of the specified selector.
 
p::first-line {
  background-color: yellow;
}
Advertisement