Learn Basic CSS by Building a Cafe Menu - Step 65

For Step 65, I have entered the following code but it keeps erroring, but it looks correct to me:

<footer>
        <p><a href="https://www.freecodecamp.org">Visit our website</p>        
</footer>

The hint keeps stating:
Your new a element should be nested within your new p element. You should have exactly one a element.

I’ve edited your code for readability. 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 (').

1 Like

you are missing a closing a tag
</a>

Hi,
Where is your second paragraph (p element) in the footer?
The ‘a’ element must target a new tab in a browser (‘target’ attribute).

Thanks, the closing tag was missing, I thought it was meant to be a self closing tag.

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