Tell us what’s happening:
Step 7 is not recognizing my section element. The instructions ask me to add a section with id=“about” inside main, containing an h2 with the text “About”. My code is:
About
The test says that my section element is missing a proper opening tag. I have refreshed and reset the exercise and re-entered the code, but the same error persists.Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<title>Mr. Whiskers' Blog</title>
<meta charset="UTF-8" />
</head>
<body>
<header>
<h1>Welcome to Mr. Whiskers' Blog Page!</h1>
<figure>
<img
src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg"
alt="a cat in the garden"
/>
<figcaption>Mr. Whiskers in the Garden</figcaption>
</figure>
<nav>
<ul>
<li><a href="#about">About</a></li>
<li><a href="#posts">Posts</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<main>
<!-- User Editable Region -->
<section
id="about"
>
<h2>About</h2>
</section>
<!-- User Editable Region -->
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36 Edg/154.0.0.0
Challenge Information:
Build a Cat Blog Page - Step 7