Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> p:last-child { background-color: #1c87c9; color: #fff; } </style> </head> <body> <h2>:nth-last-child selector example</h2> <p>Lorem ipsum is simply dummy text...</p> <p>Lorem Ipsum is simply dummy text...</p> </body> </html>