Build an Event Hub - Build an Event Hub

Tell us what’s happening:

I dont understand why the main element is wrong, canu you help me please !!!

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>Magic Event </h3>
        <p> 2025 tho crazyy vibes cmon !</p>
   </article>
   <article> 
       <h3>Football Event</h3>
       <p> Mbappe will be there lol</p>
</article>
</section>
  <section id="past-events">
          <h2>Past Events</h2> 
    <article>
        <h3> KDB crazy </h3>
        <p> wowowowowowowowowo</p>
    <img src="https://cdn.freecodecamp.org/curriculum/labs/past-event1.jpg" alt="ddk">
    </article>
    <article>
<h3> messi angarararara messi gooooaaaaaalllllll</h3>
 <p> damn son</p>
 <img src="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg" alt="djd">

 </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/143.0.0.0 Safari/537.36

Challenge Information:

Build an Event Hub - Build an Event Hub

test your code with an HTML validator Ready to check - Nu Html Checker

you have serious syntax issues that cause the main element to not be recognised properly

1 Like

ty i needed an “/” at the end of my a element

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