Stuck on 26. Build an event hub.I am missing/doing something incorrect, Asking for help, please

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Event Hub</title>
</head>
<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>
</header>
<main>
 <section id="upcoming-events">
<h2>Upcoming Events</h2> 
<article>
 <h3>Event Title</h3>
 <p>Not Sure What might be happening</p>
</article>
<article>
 <h3>Event Title</h3>
 <p>Not Sure What might be happening</p>
</article>
 </section>

<section id="past-events">
<h2>Past Events</h2>
 <article>
 <h3>Cyber Security Summit 2024</h3>
 <p>Element Description</p>
<img src="https://cdn.freecodecamp.org/curriculum/labs/past-event1.jpg">
 </article>
</section>
</main>
 <section id="past-events">
<h2>Title</h2> 
<article>
<h3>Cybersecurity summit 2024
</h3> 
 <p>A comprehensive event covering the future of blockchain technology
 Date:July 20, 2024</p>   
 <img src="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg" alt="A comprehensive event covering the future of blockchain technology">
 </article>
</section>
 <article>
   <h3>Blockchain expo 2024
</h3>
  <p>A comprehensive event covering the future of blockchain technology
 Date:July 20, 2024</p>   
 <img src="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg" alt="A comprehensive event covering the future of blockchain technology">
 </article>       
</section>     

</main>
</body>
</html>
  1. Both of the image elements inside the #past-events section should have the alt attribute with a description of the image.

Hi @Rone1

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Do all the img elements contain an alt attribute?

Happy coding

Ive tried this option and just wasn’t able to figure it out

This was it, I was missing alt for this image haha. I thought it was only asking for alt on certain images haha. Thank you for the help my code passed

1 Like

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