How do i get a css sheet to link to an html document


#1

is my html code and here is my css code

/*style.css*/
/*William Decker
05/18/17*/
body { color: #000000;
background-color: #D9F1C1;
}

outerwrapper { width: 80%;

margin; 0 auto 0 auto;}

header, nav, footer { font-family: Calibri, Arial, sans-serif;
}

main { font-family: Garamond, "Times New Roman", serif;

}

footer { font-size: 0.75em;
text-alin: center;
}

background-color: #F0F9E6;
padding: 10px;
img { float: left;
}

nav { clear: both;
}
.addrightmargin {margin-right: 2%;
}

sowhy is it not working


#2

So in your html you need to link you're css, like this.

<link href="style.css" type="text/css" rel="stylesheet">

But the name of the href="style.css" depends on the file name.