vendredi 2 janvier 2015

CSS isn't loading? What is the error

I was trying to load a CSS file to Html to style it except the CSS doesn't load. I placed both the files in the same directory


I have an html file called Homepage.html and a CSS file called Homepage.css



<html>
<title>
Welcome to Sids World!
<link rel="stylesheet" type="text/css" href="homepage.css">
</title>

<body>


<div id="header"> <!-- menu here -->
This Site is Under Construction
</div>

<div> <!-- global division -->

</div>

</body>

</html>


Furthermore my css file (located in the same directory) has code:



body
{
font-size:100%;
background-color:red;

}
#header
{
text-align:center;
font-size:4em;
font-family:sans-serif;
background-color:blue;
}


I expect when this loads that the background of the entire site will be red and blue will be the background surrounding my text, but this does not occur. What am I missing here?


The file paths of both files are:


C:\Sid\Rutgers\ComputerScience\SiteForDeploy\htmlfiles\Homepage.html


C:\Sid\Rutgers\ComputerScience\SiteForDeploy\htmlfiles\Homepage.css





Aucun commentaire:

Enregistrer un commentaire