I'm trying to set the background color of my webpage to light green, but it's not working. Here's my HTML code: I have a style section where I defined the body and header styles. Can anyone help me figure out what's wrong with my code?
3 Answers
Yeah, definitely make sure you correct "backround" to "background." The computer won't guess what you meant. You might also want to review the rest of your code to ensure it's all written correctly. It's good coding practice to check for typos!
It looks like you misspelled "background" as "backround" in your CSS. That’s a common mistake that can prevent your style from applying properly. Also, double-check your font-family spelling; it should be "Helvetica." Fix those, and your light green background should show up!
Consider placing your styles in a separate CSS stylesheet if you're not already doing that. It helps keep your HTML cleaner and makes it easier to manage styles. Just link the stylesheet in your head section!

Got it! I mostly use an external CSS file, so that makes sense. Thanks!