Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> div p { background-color: yellow; } </style> </head> <body> <div> <p>Paragraph 1 in the div.</p> <p>Paragraph 2 in the div.</p> <span><p>Paragraph 3 in the div.</p></span> </div> <p>Paragraph 4. Not in a div.</p> <p>Paragraph 5. Not in a div.</p> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_sel_element_element by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:23:36 GMT --> </html>
Result:
Try it Yourself - © w3schools.com