I assume you already know how to style stuff by its id
, class
, or element
.
<h1>
) followed by a subhead (<h2>
) shouldn't have space between them.border-bottom
) under them.<i>
inside of h1 or h2 should be blue. But not elsewhere..a + .b
is an adjacent selector. It matches elements with a class b
that are right after elements with a class .a
.nth-child
is pretty cool. You should read about it.