Build an Event Hub - Build an Event Hub

Tell us what’s happening:

Each p element should have the event description.I have checked the closing tags. But i might have missed something.

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> Menlyn</h3>
            <p> This will be at <address>
                Atterbury Road And,<br>
                Lois Ave,<br> 
                Menlyn, <br>
                Pretoria, <br>
                </address>
                <time datetime="2025-12-15 20:00">
                    15 December at 20:00</time>
            </p>
        </article>

        <article>
            <h3>African Mall</h3>
            <p>This will be held at:
                <address>
                Mall of Africa,<br> 
                Karkloof Cres, <br>
                Midrand, <br>
                2090,<br>
                </address>
                <time datetime="2026-02-18 18:00">
                    2026 18 February 18:00</time>
            </p>
        </article>
    </section>

    <section id="past-events">
        <h2>Past Events</h2>
        <article>
            <h3>Centurion Mall</h3>
                <p>This was held at:
                    <address>
                        1269 Gordon Hood Rd,<br>
                        Centurion Central,<br>
                        Pretoria,<br>
                        0046
                    </address>
                <img src="https://cdn.freecodecamp.org/curriculum/labs/past-event1.jpg" 
                alt="A Computer">
                </p>
        </article>

        <article>
            <h3>Hoerskool Centurion</h3>
                <p>This was held at:
                    <address> 
                        118 Selborne Ave, <br>
                        Lyttelton Manor,<br>
                        Centurion,<br>
                    </address>
                <img src="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg"
                alt="random picture">
                </p>
        </article>
    </section>

</main>  
</body>

</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Challenge Information:

Build an Event Hub - Build an Event Hub

this is not being interpreted as one single p element, but two, for some reason, and the second one is empty, because an opening tag is being paired with the closing </p> tag.
I don’t know if it’s because of the line break after the : or because of address not being allowed as child of p

you can right click in the preview and choose inspect to see the html structure generated by the browser

1 Like