Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

HTML help...I created a HTML file with code an all with a sample header, and a CSS file with one style change; to change the header color?

I have the two files linked and in the same folder. But the header won't change color. Why is that?

2 Answers

Relevance
  • david
    Lv 7
    6 years ago

    Well, there's either something wrong with the HTML or the CSS. You don't show us either, so it's hard to say.

    On some web servers, the file names are case sensitive. So if you have Stylesheet.css as a file, and your HTML links to stylesheet.css, it won't find it. That's one thing to check.

  • Chris
    Lv 7
    6 years ago

    Try this:

    HTML:

    <header>Hello, I'm a header</header>

    CSS:

    header {

    background-color: green

    }

Still have questions? Get your answers by asking now.