So we've proven that id declarations override class declarations, regardless of where they are declared in your style element CSS.
style
There are other ways that you can override CSS. Do you remember inline styles?
Use an inline style to try to make our h1 element white. Remember, inline styles look like this:
h1
<h1 style="color: green;">
Leave the blue-text and pink-text classes on your h1 element.
blue-text
pink-text
Last updated 3 years ago