Home / CSS Tips Generated By ChatGPT / Styling the First Line of Text in CSS Use the ::first-line pseudo-element to style the first line of a block of text. Source Code p::first-line { font-weight: bold; font-size: larger; }