CSS First Line Pseudo Element

  • Post category:CSS

Get the code of CSS First Line Pseudo Element and watch video tutorials. You can practice using our code editor. Our practical guide will make your learning journey much easier. You can explore the tutorial and learn.

<h3>This is a dummy text just for testing purpose. I want to update first line only and rest of the lines should remain as they are.</h3>
h3:first-line {
  color: red;
  background: yellow;
  font-style: italic;
}