The first exercise in Learn CSS colors seem to be bugging out. I checked the second exercise and what I had entered is correct. This is the error message I get:
Error Message: Your html element should be below the DOCTYPE declaration.
Yep, there is an active discussion about this. The most likely result will be that this particular test is going away since having the DOCTYPE on a line by itself isn’t required.