Background color problem

for some reason the background color in the h2 elements are not being implemented when i am selecting them with their respective ids. can you help me figure out why is it not happenng?

<!DOCTYPE html>
<html>
    <head>
        <link href='style.css' type="text/css" rel='stylesheet'>
    </head>

    <body> 
        <header><h1>Dasmoto's Arts And Crafts</h1></header>
        <h2 id="brushes">Brushes</h2>
            <img src="hacksaw.webp">
            <h3>Hacksaw Bushes</h3>
            <p>Made of the highest quality oak. hacksaw brushes are known for their weight and their ability to hold  paint in large amounts. Available in different sizes. <span> Starting at $3.00/brush.</span></p>
        <h2 id="frames">Frames</h2>
            <h3>Art Frames (assorted)</h3>
            <p>Asorted frames made of different material, including MDF, birchwood and PDE. Select frames can be sanded and painted according to your needs. <span>Starting at $2.00/frame</span></p>
            <img src="frames.webp">
        <h2 id="paint">Paint</h2>
            <h3>Clean Finish Paint</h3>
            <p>Imported paint from Finland. Over 256 colors avilable in-store, varying in quantity(1 oz to 8 oz). Clean Finnish paint microbinds to canvas, increasing the finish and longevity of any art work. <span>Starting at $5.00/tube.</span></p>
            <img src="finnish.jpeg">
    </body>

</html>

the css code is below

header {
    background-image: url('pattern.webp');
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: khaki;
    font-size: 50px;
    text-align: center;
    margin: auto;
}
span {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: blue;
}
h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 32px;
    color: black;
}
#brushes {
    background-color: mediumspringgreen;
}
#frames {
    background-color: lightcoral;
}
#paint {
    background-color: skyblue;
}

That’s strange - when I pasted your exact code into a workspace, it works just fine. What are you experiencing instead?

sorry i resolved the problem myself and eddited it here. i forgot to mention that the problem has been solved.

thank you very much for the help though. :grinning_face_with_smiling_eyes:

Haha, that’s alright! Happy coding!