Technical Documentation Page - Build a Technical Documentation Page

What thing did I do wrong about #NAV-BAR

  **Your code so far**
/* file: index.html */
<link rel="stylesheet" href="styles.css">
<main id="main-doc">
<section class="main-section" id="navbar" class="nav-link"><header id="head1">head1</header><p></p><p></p><p></p><p><p></p><p><p><p></p><p></p><p></p></p><title></title></section>
<section class="main-section" id="navbar" class="nav-link"><header id="head2">head2</header></section>
<section class="main-section" id="navbar" class="nav-link"><header id="head3">head3</header>
  <li class="nav-link" href="1">1</li>
  <li class="nav-link" href="1">2</li>
  <li class="nav-link" href="1">3</li>
  <li class="nav-link" href="1">4</li>
  <li class="nav-link" href="1">5</li>
<section class="main-section" id="navbar" class="nav-link"><header id="head4">head4</header></section>
<section class="main-section" id="navbar" class="nav-link"><header id="head5">head5</header></section>
<nav id="navbar">
<a class="nav-link">
<a class="nav-link">
  <a class="nav-link">
    <a class="nav-link">
      <a class="nav-link">
/* file: styles.css */
@media{query} {

  **Your browser information:**

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

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

The nav element should be at the top of the HTML and you need to close it off properly with a closing nav tag. Also, you need to close all of the links in the nav with closing a tags too. And then you should have text in those links and they should link to the different sections on the page.

Also, only the nav should have id="navbar". In fact, IDs are supposed to be unique in HTML, so once you use an id one element you can’t use it on any other.

And are the sections supposed to have the “nav-link” class?

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