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