second child element

PHOTO EMBED

Fri May 29 2020 13:53:32 GMT+0000 (Coordinated Universal Time)

Saved by @Hamza #undefined

<!DOCTYPE html>
<html>
<head>
<style> 
p:nth-child(2) {
  background: red;
}
</style>
</head>
<body>
​
<p>The first paragraph.</p>
<p>The second paragraph.</p>
<p>The third paragraph.</p>
<p>The fourth paragraph.</p>
​
<p><b>Note:</b> Internet Explorer 8 and earlier versions do not support the :nth-child() selector.</p>
​
</body>
</html>
​
content_copyCOPY

https://www.w3schools.com/cssref/tryit.asp?filename=trycss3_nth-child