"Did you create a <div> with an ID of 'header'?" issue


#1



Okay, first exercise, lol :slight_smile: I don't know where's the issue, but I get the mentioned error constantly. I didn't write the whole code in CSS, I just wrote the one for the first div with the 'header' id and it seems something's wrong. Check this out:

HTML code:

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title></title>
    </head>
    <body>
        <div id:"header"></div>
        <div class:"left"></div>
        <div class:"right"></div>
        <div id:"footer"></div>
    </body>
</html>

CSS code:
...

#header{
background-color:red;
border-radius:5px;
height:100px;
width:100px;

}

...

So, why isn't the 'header' div created? I don't get it.


#2

Lol, I can't believe I made such a mistake as putting ':' instead of "=" after "class" and "id", haha. Silly me!