Hello, Gabriel here, I stared learning to code.
I think the code is right but does not want to go through
**Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<head>
<link rel:"stylesheet" href:"styles.css">
<meta charset="utf-8" />
<title>Cafe Menu</title>
</head>
<body>
<header>
<h1>CAMPER CAFE</h1>
<p>Est. 2020</p>
</header>
<main>
<section>
<h2>Coffee</h2>
</section>
</main>
</body>
</html>
/* file: styles.css */
h1, h2, p {
text-align: center;
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
Challenge: Learn Basic CSS by Building a Cafe Menu - Step 17
Link to the challenge:
1 Like
you should switch rel:“stylesheet” and href:“styles.css” position
then it should be in the same line with the head opening tag
thanks a lot! Now I know it was my mistake use the : instead of =
1 Like
I’m getting the same issue, but my code is correct. This is verified by the output on the right, but I still get the error:
Test: Sorry, your code does not pass. Keep trying.
Hint: You should have one self-closing link element.
My code:
<head>
<meta charset="utf-8" />
<title>
Cafe Menu
</title>
<link rel="stylesheet" href="styles.css">
</head>
The entire screenshot. (The code seems to be working perfectly since the CSS is applied)
Hi @biplobmanna
Please create a new thread if the existing post doesn’t help to prevent notifying other people. We can help you in your new post
system
Closed
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.