Technical Documentation Page - Build a Technical Documentation Page

Tell us what’s happening:
every nav link should be under navbar?
i am trying the same ,kindly let me know my mistake

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>HTML documentation</title>
    <link rel="stylesheet" href="styles.css">
    <meta charset="UTF-8">
    <meta name="viwport" content="width=device-width, initial-scale=1.0">
  </head>
  <body>
    <main id="main-doc">
      <nav id="navbar">
        <header align="left">Working on The Nav Bar</header>
       <ul>
        <li><a href="#1" class="nav-link">1</li>
        <li><a href="#2" class="nav-link">2</li>
        <li><a href="#3" class="nav-link">3</li>
        <li><a href="#4" class="nav-link">4</li>
        <li><a href="#5" class="nav-link">5</li>
        <li><a href="#6" class="nav-link">6</li>
      </ul>
      </nav>
      </section>
      <section class="main-section" id="1">
        <header id="1">1</header>
  <code></code>
  <cod></code>
  <code></code>
  <code></code>
  <code></code>
  <code></code>
      </section>
      <section class="main-section" id="2">
        <header id="2">2</header>
        <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
     </section>
      <section class="main-section" id="3">
        <header id="3">3</header>
        <ul>
          <li></li>
          <li></li>
          <li></li>
          <li></li>
          <li></li>
        </ul>
      </section>
      <section class="main-section" id="4">
        <header id="4">4</header>
       </section>
       <section class="main-section" id="5">
        <header id="5">5</header>
      </section>
      <section class="main-section" id="6">
        <header id="6">6</header>
      </section>
      </main>
  </body>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

Just as with @kittenlove, whose code is very similar, you haven’t closed off any of your .nav-link anchor elements. You should add closing tags and it should solve your issue.

As an aside, you have a typo here:

meta name="viwport"
1 Like

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