Technical Documentation Page - Build a Technical Documentation Page

Tell us what’s happening:
I can’t figure out why my code did not run for this prompt:
" Each .nav-link should have an href attribute that links to its corresponding .main-section (e.g. If you click on a .nav-link element that contains the text “Hello world”, the page navigates to a section element with that id)."

Your code so far

<!-- file: index.html -->
  <section class="main-section" id="Introduction">
      <header>Introduction</header>
      <p>text</p>
      <p>text</p>
      <code></code>
        <header>Intro</header>
      <ul>
        <li>one</li>
        <li>two</li>
      </ul>
    </section>
    <section class="main-section" id="Knowledge">
      <header>Knowledge</header>
      <p>text</p>
      <p>text</p>
      <code></code>
      <ul>
        <li>one</li>
        <li>two</li>
      </ul>
    </section>
    <section class="main-section" id="Java">
      <header>Java</header>
      <p>text</p>
      <p>text</p>
      <code></code>
      <ul>
        <li>one</li>
        <li>two</li>
      </ul>
    </section>
    <section class="main-section" id="Hello">
      <header>Hello</header>
      <p>text</p>
      <p>text</p>
      <code></code>
      <ul>
        <li>one</li>
        <li>two</li>
      </ul>
    </section>
    <section class="main-section" id="Variables">
      <header>Variables</header>
      <p>text</p>
      <p>text</p>  
      <code></code>
      <ul>
        <li>one</li>
        <li>two</li>
      </ul>
    </section>
    <nav id="navbar">
      <header>Reference</header>
      <a class="nav-link" href="Introduction">Introduction</a>
      <a class="nav-link" href="Knowledge">Knowledge</a>
      <a class="nav-link" href="Java">Java</a>
      <a class="nav-link" href="Hello">Hello</a>
      <a class="nav-link" href="Variables">Variables</a>
    </nav>
  </main>
</html>
/* file: styles.css */
@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

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