<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
p:first-line{
color: red;
}
</style>
</head>
<body>
<h1>CSS :first-line Selector</h1>
<p>This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. </p>
<p><strontg>Note</strong>: Try to resize the width of this output window if the paragraph is in single line.</p> </body>
</html>