HTML CSS examples for CSS:Quiz
Set the background color of <p> elements, that are the first child of any element, to "pink".
<!DOCTYPE html> <html> <head> <style> p:first-child {<!-- ww w .j a va 2 s . c o m--> background-color: pink; } </style> </head> <body> <p>This is a paragraph.</p> <p>This is also a paragraph</p> </body> </html>