We would like to know how to hide second p tag within a div.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div>p:first-child+p {
display: none;
}<!--from w ww. j a v a2s . c o m-->
</style>
</head>
<body>
<div>
<p>One</p>
<p>Two</p>
<p>Three</p>
</div>
</body>
</html>
The code above is rendered as follows: