-
What is the difference between block and inline elements?
-
Which selector is more specific, a tag selector or class selector?
-
What is the box model?
-
What's the difference between margin and padding?
-
Write a CSS rule to make all the text of all paragraphs on a page red.
-
Write a CSS rule to turn the background color of the link with the
.button
class blue on hover:
<a href="#" class="button">Learn more</a>
- Write a CSS rule to give all list items in the unordered list with the
list-primary
ID a font size of 30 pixels, but not the ones in the second unordered list.
<ul id="list-primary">
<li>Home</li>
<li>About</li>
<li>Contact</li>
</ul>
<ul>
<li>John</li>
<li>Paul</li>
<li>George</li>
<li>Ringo</li>
</ul>