Tell us what’s happening:
Hi, I keep getting an error with steps 18/19. It is asking me to make sure I have both an h3 and p element in my first section. I don’t see where I’ve made any mistakes and I feel like my code looks like other peoples so I’m not sure what’s happening here. Any help is appreciated!
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Event Hub</title>
</head>
<body>
<header>
<h1>Event Hub</h1>
<nav>
<ul>
<li> <a href="#upcoming-events">Upcoming Events</a></li>
<li> <a href="#past-events">Past Events</a></li>
</ul>
</nav>
</header>
<main>
<section id="upcoming-events">
<h2>Upcoming Events</h2>
<article>
<h3>First Event</h3>
<p>This is the first event in the first section.</p>
</article>
<article>
<h3>Second Event<h3>
<p>This is the second event in the first section</p>
</article>
</section>
<section id="past-events">
<h2>Past Events</h2>
<article>
<h3>First Event</h3>
<p>This is the first event in the second section</p>
<img src="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg" alt="cool pic of cube">
</article>
<article>
<h3>Second Event</h3>
<p>This is the second event in the second section.</p>
<img src="https://cdn.freecodecamp.org/curriculum/labs/past-event1.jpg" alt="vintage computer picture">
</article>
</section>
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Challenge Information:
Build an Event Hub - Build an Event Hub