I am trying to link my stylesheet to pages in my pages folder. I have linked the css file to my index page and it is working correctly. However not so for the pages folder. Below is the links.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<meta charset="utf-8">
<meta name="description" content="web development tutorials">
<meta name="keywords" content="html/css/javascript/pyton/github/react"
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<title>About us</title>
<link rel="stylessheet" type="text/css" href="../css/style.css">
<meta name="description" content="about us/who we are/people/managing director">
<meta name="keywords" content="services/ sales/business development"
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
CodePudding user response:
Typo in the link stylessheet instead of stylesheet
CodePudding user response:
First of all, you just begin the path to the css file (in your index page) by ./
.
What is the structure of your project? I mean, where is your css file compared to your index page and other pages?
Also, you wrote stylessheet
instead of stylesheet
in the rel
of your link.