Build an Event Hub - Build an Event Hub

Tell us what’s happening:

Why does it say there is no id attribute? I thought it is there.

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>
                        <a id="upcoming-events"></a>

            </section>
        <section>
            <a id="past-events"></a>
        </section>
    </main>
</body>

</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

Challenge Information:

Build an Event Hub - Build an Event Hub

Please tell us specifically which error message you need clarification on so we can best assist you :+1:

Hi @jeremyhuangmiami

The first section element should have an id attribute with the value upcoming-events

The id attribute needs to go in the section opening tag.

Happy coding

you put the id in the wrong place it should be in a different place

The id attribute should be put elsewhere other than the a element. Read the requirement carefully.

Oh ok thank you for helping!! :slight_smile:

1 Like