<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS ::first-line Pseudo-element</title> <style> p::first-line { color: blue; font-variant: small-caps; } </style> </head> <body> <p> The ::first-line pseudo-element applies special style to the first line of a text. The first line's length is determined by the size of the browser window or the contained element. </p> </body> </html>