Why isn’t my background light green? I need help fixing my HTML!

0
6
Asked By PixelatedPanda42 On

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

Answered By SyntaxNinja99 On

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!

Answered By CleverCoder05 On

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!

Answered By DesignGuru888 On

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!

PixelatedPanda42 -

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

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.