No se cual es mi error, si me pueden ayudar

Paso 12 de CSS

<!DOCTYPE html>



    <meta charset="utf-8" />

    <title>Cafe Menu</title>

      h1, h2, p {

        text-align: center;





      <h1>CAMPER CAFE</h1>

      <p>Est. 2020</p>









HI @Matew3098 !

Welcome to the forum!

Please provide a link to the challenge you are working on so we can help you.

Here is the link

So the challenge only wants you to center the h1.
It looks like you centered the h1,h2 and p tags.

Once you fix that error, then it will pass.

Hope that helps!

Well I only centered the h1 element but it gives me this error code

Sorry, your code does not pass. Keep trying.


You should have an h1 selector in your style element.

Can I see your new code?

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Here is the new code thanks for the help

      h1 {
        text-align: center;

The code you have shared works on my end. Please ensure that you have disabled any extensions that interface with the freeCodeCamp website (such as Dark Mode and Ad Blocker), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

Or you can try another browser

Oh it was the adblocker i didn’t know it could interfere. Sorry for the inconvenience

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.