Welk element word groen met deze CSS.
Which element becomes green with this CSS
div, div span { color : green; }
HTML
<div>
</div>
<span>
</span>
<div>
<span>
Welk element word groen met deze CSS.
Which element becomes green with this CSS.
h2 + p { color : green; }
HTML
<h2>heading</h2>
<p>paragraph</p>
<p>
<h2>
Welke kleur wordt de paragraaf (p
) met deze CSS.
What color does the paragraph (p
) become with this CSS.
p { color : red; }
body p { color: green; }
.foo p { color: black; }
HTML
<body id="foo">
<div class="bar">
</div>
<p>
</p>
</body>
red
green
black
Hoe groot is de marge tussen de twee paragrafen met deze HTML.
How large is the margin between the two paragraphs with this HTML.
<p>paragraaf 1</p>
<p>paragraaf 2</p>
En deze CSS.
And this CSS.
p { margin : 1em; }
1em
2em
3em
Hoe breed is deze div
in totaal, met deze CSS.
How wide is this div
, with this CSS?
div { width : 100px; padding: 10px; border: 1px; }
100px
111px
122px
Heeft deze (en alleen deze) CSS enig nut?.
Is this (and only this) CSS of any use?
span { width : 100px; }
ja
nee
CSS 3 involved
Welk(e) element(en) worden rood, met deze CSS.
Which element(s) becomes red with this CSS,
p ~ div + h2[title] { color: red; }
En deze html
<p>paragraaf</p>
<div>division</div>
<h2 id="a">heading A</h2>
<div>
<h2 id="b">heading B</h2>
</div>
<h2 id="c" title="title">header C</h2>
heading A
heading B
heading C
Welke kleur wordt de h1
met deze HTML.
The h1
becomes which color with this HTML?
<body>
<div>
<h1 id="foo">heading 1</h1>
<p>paragraph</p>
</div>
</body>
En deze CSS.
h1 { color: red; }
body > h1#foo { color: green; }
red
green