  

<html>
<head>

<style>

div:first-line 
{
color: #ff0000;
font-variant: small-caps
}
</style>

</head>

<body>

<p><b>Note:</b> Netscape 4 does not support the "first-line" property.</p>
<p><b>Note:</b> Internet Explorer 5.5 supports the "first-line" property.</p>

<div>
You can use the first-line pseudo-element to add special style to the first line of a text.
</div>

</body>
</html>


 
You can edit the text above, and click on the "Display result" button to see the result in the window to the right. 
