#2
article p
{
color: white;
background: blue;
}
article p
{
color: white;
background: blue;
}
Selector
article p
{
color: white;
background: blue;
}
Declarations
article p
{
color: white;
background: blue;
}
Properties
article p
{
color: white;
background: blue;
}
Values
<h1>Title</h1>h1 {
color: red;
}<h1 id="title-42">Title</h1>#title-42 {
color: red;
}<h1 class="article-title">Title</h1>.article-title {
color: red;
}<button disabled>Submit</button>[disabled] {
color: red;
}<button disabled="true">Submit</button>[disabled="true"] {
color: red;
}<article data-tags="politics featured popular">...</article>[data-tags="politics featured popular"] { color: red; }
[data-tags~="featured"] { color: red; }
[data-tags^="poli"] { color: red; }
[data-tags$="ular"] { color: red; }
[data-tags*="cs feat"] { color: red; }* {
color: red;
}header .navigation {
color: red;
}<header>
<ul class="navigation"></ul>
</header>
<footer>
<ul class="navigation"></ul>
</footer>
div.alert.success {
color: green;
}
div.alert.error {
color: red;
}<div class="alert success">YES</div>
<div class="alert error">NO</div>article > p {
color: red;
}
.summary p {
color: green;
}<article>
<section class="summary">
<p>...</p>
</section>
<p>...</p>
</article>h1 ~ p {
color: red;
}<h1>My title</h1>
<p>My summary</p>
<p>Main text</p>h1 + p {
color: red;
}<h1>My title</h1>
<p>My summary</p>
<p>Main text</p>.summary,
.main-text {
color: red;
}<p class="summary">My summary</p>
<p class="main-text">Main text</p>.summary {
color: red;
}
.main-text {
color: red;
}