Tribute Page Tests Not Working

I have written and re-written this piece of code multiple times and nothing. The " You should have a main element with an id of main." test is not working. It’s not the only one that isn’t working. I’ve only managed to pass the title test.
I tried the following code and still nothing.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title id="title">Tribute Page<title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <header>
      <h1>Lorem Ipsum</h1>
    </header>
    <main id="main">
      <div id="img-div">
        <img id="image" src="" />
        <figcaption id="img-caption">Lorem Ipsum</figcaption>
      </div>
      <section id="">

      </section>
    </main>
  </body>
</html>

Found the issue.

It was here

You need to remove the id="title" and instead place that id for the h1

You have a syntax error because you are using two opening tags.

The title tag should be this

     <title>Tribute Page</title>
1 Like

Thanks. I read the code at least five times and didn’t see that.

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