I've seen a lot of confusion surrounding exercises 2 and 3 in HTML Basics II > Styling the font! I want to be clear that the problem isn't related to these SCTs, but the error messages haven't exactly been the clearest, so I've updated them to clarify some hard-to-spot errors.
If you nest your
<h1> tags incorrectly, like this:
<h1 <h1 style="...">Text</h1>
<h1> <h1 style="...">Text</h1>
<p <p style="...">Text</p>
<p> <p style="...">Text</p>
Instead of correctly, like this:
You'll see the correct output in the live preview (that is, the font size or color will change appropriately), but the exercise won't pass you because your HTML is syntactically incorrect. The SCTs in these particular exercises have been updated to alert you if they detect improper nesting, which should help the issue.
If you find you're getting a really weird
font-size reported back to you, such as
18.1818181818px, the problem is that your browser's zoom needs to be reset. If you type ⌘-0 (on a Mac—that's the command key and the 0 key together) or Ctrl-0 on a PC, that should reset your zoom. You can also do this in most browsers by going up to "View" and selecting "Reset" or "Actual Size."
Hope this helps!
Edit: I have seen some reports of browsers that automatically resize fonts below 9 or 10px, so exercises have been updated with a floor of 10px.