I'm using a Mac and using textedit to create a website the old fashion way. I have a HTML file and a CSS file. I cannot link the CSS with the HTML. Here is the code for my files:
HTML:
<!DOCTYPE html>
<html>
<head>
<link rel=“stylesheet” href=“style.css” type="text/css" media="screen">
<title>William’s Physics Webpage</title>
</head>
<body>
<div class = “nav”>
<div class = “container”>
<ul>
<li> About Me </li>
<li> Why Physics? </li>
<li> Great Thinkers </li>
<li> Guest Page </li>
</ul>
</div>
</div>
</body>
</html>
Here is my CSS code:
body {
background-color:blue;
}
.nav ul {
display:inline;
}
As you can see, the back ground is supposed to be blue due to the CSS code, but it's not. The file name for my html file is main.html while the name of my css file is style.css
“ NOT THIS ”. Use" THIS IS RIGHT "