<!DOCTYPE html>
<html>
<head>
<title>jQuery :first Selector</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$("p:first").css('color', 'red');
});
</script>
</head>
<body>
<h1>Article heading</h1>
<p>First paragraph start here...</p>
<p>Second paragraph start here...</p>
<h3>Footer heading</h3>
</body>
</html>