<!DOCTYPE html> <html> <head> <style> div.one .two{ width:150px; height:150px; background-color:lightgreen; } </style> </head> <body> <div class="one"> <p class="two">This is a paragraph with parent that has one as the attribute of class.</p> </div> </body> </html>
Run
×
Share