Build a technical documentation page HELP

Hello
I made my let’s say skeleton or basic html and css before I want to write in more details throughout the texts. Anyway, I get two errors.
First error:
You should have at least five .main-section elements that are descendants of #main-doc
Second error:
Failed:You should have the same number of .nav-link and .main-section elements.

This is the first time I post on here(at the forum). Usually I find hints and get the answer myself, but now I’m really lost and if you can’t see my code-again sorry idk how to post
And here is my code:

<!DOCTYPE html>
<html lang="en">
  <link rel="stylesheet" href="styles.css">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <head>
    <header>
      <h1>Not</h1>
      <p>Empty</p>
      </header>
  </head>
  <body>
    <nav id="navbar">
      <header>Something</header>
  <a id="navbar" href="#topic_1" class="nav-link">Topic 1</a>
  <a id="navbar" href="#topic_2" class="nav-link">Topic 2</a>
  <a id="navbar" href="#topic_3" class="nav-link">Topic 3</a>
  <a id="navbar" href="#topic_4" class="nav-link">Topic 4</a>
  <a id="navbar" href="#topic_5" class="nav-link">Topic 5</a>
</nav>

  <main id="main-doc"> 
<section id="topic_1" class="main-section">
  
  <header>topic 1</header>
  This is some text
  <p></p>
   <p></p>
    <p></p>
     <p></p>
      <p></p>
       <p></p>
        <p></p>
         <p></p>
          <p></p>
           <p></p>
</section>
<section id="topic_2" class="main-section">
  <header>topic 2</header>
  This is some text
  <p></p>
  <code></code>
  <code></code>
  <code></code>
  <code></code>
  <code></code>
</section>
<section id="topic_3" class="main-section">
  <header>topic 3</header>
 
  This is some text
  <p></p>
  <ul>
  <li>item 1</li>
  <li>item 2</li>
  <li>item 3</li>
  <li>item 4</li>
  <li>item 5</li>
</ul>
</section>
<section id="topic_4" class="main section">
  <header>topic 4</header>
 
  <p></p>
  This is some text
</section>
<section id="topic_5" class="main section">
  <header>topic 5</header>
  
  <p></p>
  This is some text
</section>
  </main>
   </body>
  </html>

One problem I see is that you have duplicate id values.
Ids should be unique and this test is expecting only one #navbar element.

Try to fix that.

Also your link and meta elements should be inside the head element block.

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