body { background-color: lightblue; } h1 { color: white; text-align: center; } p { font-family: verdana; font-size: 20px; }
<link rel="stylesheet" type="text/css" href="/html/style.css">
p { text-align: center; color: red; }
#para1 { text-align: center; color: red; }
.center { text-align: center; color: red; }
p.center { text-align: center; color: red; }
<p class="center large">This paragraph refers to two classes.</p>
h1 { text-align: center; color: red; } h2 { text-align: center; color: red; } p { text-align: center; color: red; }
h1, h2, p { text-align: center; color: red; }
*Note: Some materials and examples inspired and from W3Schools.com.