Hi, I have an issue with this code and I could really use the help. I’m supposed to style the html file using a separate file and was told to rewrite the same code on the separate CSS file which is “h1, h2, p {
text-align: center;
}”. I did do so but I still can’t go to the next task, the hint is “Your styles.css file should have the h1, h2, p type selector.” I’ve already tried coding the selectors separately and even added a link to the html file. Please help🙏
Your code so far
/* file: index.Ext.html */
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Cafe Menu</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<h1>CAMPER CAFE</h1>
<p>Est. 2020</p>
<section>
<h2>Coffee</h2>
</section>
</main>
</body>
</html>
/* file: styles.Ext.css */
h1, h2, p {
text-align: center;
}
Your mobile information:
JNY-LX1 - Android 10 - Android SDK 29
Challenge: Learn Basic CSS by Building a Cafe Menu - Step 14
Link to the challenge: