<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
p,h2{color:blue;text-align:center;}.marked{background-color:red;}.marked p{color:yellow;}
</style>
</head>
<body>
<p>This paragraph has blue text, and is center aligned.</p>
<div class="marked">
<h2>This paragraph has not blue text.</h2>
<p>p elements inside a "marked" classed element keeps the alignment style, but has a different text color.</p>
</div>
</body>
</html>