paragraph tag not changing color

rfminwl

New Member
From the below code: why paragraph tag not showing green? Iam just practising CSS, so I came across with this doubt..\[code\]p .marked2{color:green;}.marked p{color:purple;}<p class="marked2">This is a green paragraph.</p> //HERE NOT SHOWING GREEN<div class="marked"><p>This is a purple paragraph.</p> //HERE GETTING PURPLE COLOR</div>\[/code\]
please clear me this..
 
Back
Top