Ok, so I'm making a joke website about a couple of my friends in my computing class and I have reached a problem, the wrapper in my CSS code is not applying to the webpage. The wrapper applies to other pages on the site, however it will not apply to this page, here is the HTML code:
<html>
<head>
<link href="main.css" rel="stylesheet" type="text/css>
<title>Ways that George is physically better than Adam</title>
</head>
<body>
<div class=" wrapper ">
<h1> There are many ways that George is physically better than Adam </h1>
<div class="article ">
<ul>
<li>George isn't as fat as Adam.</li>
<li>George has better hair than Adam.</li>
<li>George has a manly assortment of stubble.</li>
<li>George is just more attractive than Adam.</li>
</ul>
<div class="littlearticle ">
<p> <a href="George is better than adam.html "> Click here to return to the homepage. </a> </p>
</div>
</div>
</div>
</html>
and here is my CSS code
body {
text-align: Left;
}
.wrapper {
width:40em;
text-align; left;
margin-left: 150px;
margin-right: 150px;
padding: 8px;
}
h1 {
color:red;
background-color;white;
font-family:tahoma;
border-top:red 2px double;
border-bottom: red 2px dashed;
padding: 8px;
}
.article {
color:blue;
font-family:consolas;
font-size:medium;
background-color:yellow;
padding;
8px;
}
.littlearticle {
color:black;
font-family:consolas;
font-size:medium;
background-color:red;
padding: 8px;
}
<link href="main.css" rel="stylesheet" type="text/css>shouldn't it be<link href="main.css" rel="stylesheet" type="text/css">? also you are missing the closingbodytag.