Technical Documentation Page - Build a Technical Documentation Page

My code doesn’t seem to pass because a have to link the .nav-link elements to corresponding .main-section elements

need some help

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en"></html>
<head ><link rel="stylesheet" href="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta charset="UTF-8"></meta></head>
  <main id="main-doc">
  <section class="main-section" id="Introduction"><header>Introduction</header>

    <section class="main-section" id="What_you_should_already_know"><header>What you should already know</header>
    <section class="main-section" id="JavaScript_and_Java"><header>JavaScript and Java</header>
    <section class="main-section" id="Hello_world"><header>Hello world</header>
    <section class="main-section" id="Variables"><header>Variables</header>
    <nav id="navbar"><header>JS Documentation</header>

    <div><a class="nav-link" href="">Introduction</a></div>

    <div><a class="nav-link" href="">What you should already know</a></div>
 <div><a class="nav-link" href="">JavaScript and Java</a></div>
 <div><a class="nav-link" href="">Hello world</a></div>
 <div><a class="nav-link" href="">Variables</a><div> </nav>
/* file: styles.css */
@media (max-width: 600px) {
  body {
    background-color: white;
#navbar {padding-right: 10%  }

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

Its asking you to link navigation elements to sections on the page.
You can do this by passing in the id of the section into an anchor element.

For example I may have something like this:
(this is an example not the answer)

    <a href="#section-ID">Click here to go to section</a>

<section id="section-ID">
      <p>some content</p>

Remember ids are case sensitive and should not contain spaces

HTML Links - Create Bookmark (

1 Like

Thank very very much it worked

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