Edit This Code:
<!DOCTYPE html>
<html>
<head>
<style>
p:first-child i {
    color: blue;
}

</style>
</head>
<body>

<p>I am a <i>strong</i> person. I am a <i>strong</i> person.</p>
<p>I am a <i>strong</i> person. I am a <i>strong</i> person.</p>
<p><b>Note:</b> For :first-child to work in IE8 and earlier, a DOCTYPE must be declared.</p>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy