I can't seem to get my html file to link with the external stylesheet I am trying to apply. Both files are located in the same folder and the filenames are accurate:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Assignment 3</title>
<link rel=”stylesheet” href=”assign_3_style.css”>
</head>
<body>
<h1> Sandy's Sandwiches </h1>
</body>
</html>
------------------------------------------------------------------------------------------------
body { max-width:325; }
h1 {
border:3px inset #2E4053;
color:#0B5345;
}
You are using typographic quotes in there:
<link rel=”stylesheet” href=”assign_3_style.css”>
Those won't work in code - change them to plain quotes:
<link rel="stylesheet" href="assign_3_style.css">
PS: max-width:325;
won't work either, you need to specify a unit, like "px": max-width:325px;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.