Tell us what’s happening:
i need to put a nav element inside my header but it’s already there help me pls
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 class="class">
<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>Event title 1</h3>
<p>Event description</p>
</article>
<article>
<h3>Event title 2</h3>
<p>Event description</p>
</article>
</section>
<section id="past-events">
<h2>Past Events</h2>
<article>
<h3>Event title 1</h3>
<p>Event description</p>
<img src="https://ih1.redbubble.net/image.1684651627.5213/fpp,small,lustre,wall_texture,product,750x1000.jpg" alt="chat">
</article>
<article>
<h3>Event title 2</h3>
<p>Event description</p>
<img src="https://ih1.redbubble.net/image.1684651627.5213/fpp,small,lustre,wall_texture,product,750x1000.jpg" alt="chat">
</article>
</section>
</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/134.0.0.0 Safari/537.36 OPR/119.0.0.0
Challenge Information:
Build an Event Hub - Build an Event Hub
https://www.freecodecamp.org/learn/full-stack-developer/lab-event-hub/lab-event-hub