Tell us what’s happening:
Hello. I wrote my CSS lines like this:
h1, h2, p {
text-align: center;
}
… but the console is still telling me to use (
h1, h2, p )as selector, what I did. So where isbthe problem please?
Your code so far
/* file: index.Ext.html */
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Cafe Menu</title>
<style>
h1, h2, p {
text-align: center;
}
</style>
</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:
SM-A155M - Android 14 - Android SDK 34
Challenge: Learn Basic CSS by Building a Cafe Menu - Step 14
Link to the challenge: