Responsive Web Design Projects - Build a Technical Documentation Page

**Tell us what’s happening
You should have the same number of .nav-link and .main-section elements.e in detail here.

   **Your code so far**
/* file: index.html */
<main id="main-doc">
<section class="main-section" id="Introduction"><header>Introduction</header>
</section>
<section class="main-section" id="What_you_should_already_know"><header>What you should already know</header> 
</section>
<section class="main-section" id="JavaScript_and_Java"> 
 <header>JavaScript and Java</header> 
</section>
<section class="main-section" id="Hello_world">
 <header>Hello world</header> 
</section>
<section class="main-section" id="Variables"> 
 <header>Variables</header> 
<section class="main-section" id="Declaring_variables"><header>Declaring variables</header>
</section> 
<p></p> 
<p></p> 
<p></p> 
<p></p> 
<p></p> 
<p></p> 
<p></p> 
<p></p> 
<p></p> 
<p></p> 
<code></code>
<code></code>
<code></code>
<code></code>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<code></code>
<link rel="stylesheet" href="styles.css"> 
<nav id="navbar">
<header>JS Documentation</header> 
<ul>
<li>
<a class="nav-link" href="#Introduction">Introduction</a></li>
<li><a class=".nav-link" href="#What_you_should_already_know">What you should already know</a></li>
<li><a class=".nav-link" href="#JavaScript_and_Java">JavaScript and Java</a></li>
<li><a class=".nav-link" href="#Hello_world">Hello world</a></li>
<li><a class=".nav-link" href="#Variables">Variables</a></li>
<li><a class=".nav-link" href="#Declaring_variables">Declaring variables</a></li>
</ul>
</nav>
</section>
</main>
/* file: styles.css */
#navbar {
width: 45%;
}
@media(max-width: 760px) {
 body {
 background-color: green:
 }
}
   **Your browser information:**

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

Challenge: Responsive Web Design Projects - Build a Technical Documentation Page

Link to the challenge:

The problem is the way you wrote the classes above.
They should all be nav-link classes but you wrote “.nav-link”

1 Like

Thank you very much it worked :innocent::innocent::innocent::innocent:

1 Like