Responsive web design project on free code camp

Tell us what’s happening:
I have to create ID names for my section elements that match the text in my a tags. I though I did that but I am still getting an incorrect response.

  **Your code so far**
\ file: <style>
@media (min-width: 30em) and (max-width: 80em) {
body {
  background-color: purple;
}
}
</style>
<main id="main-doc"> 
<section class="main-section" id="Javasctipt_and_Java">
  
  <header id="element-1">Javascript and Java</header>
  <p></p><p></p>
  <code></code>
  <nav id="navbar"><header>
  <a href="#Javascript_and_Java" class="nav-link">Javascript and Java 1</a>
  <a href="#section_2" class="nav-link">Section 2 Hello World</a>
  <a href="#section_3" class="nav-link">Section 3</a>
  <a href="#section_4" class="nav-link">Section 4</a>
  <a href="#section_5" class="nav-link">Section 5</a>
  </header>
  </nav>
</section>
<section class="main-section" id="section_2">
  <header id="element-2">Section 2 Hello World</header>
  <p></p><p></p>
  <code></code>
</section>
<section class="main-section" id="section_3">
  <header id="element-3">Section 3</header>
  <p></p><p></p>
  <code></code>
  <ol>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
</section>
<section class="main-section" id="section_4">
  <header id="element-4">Section 4</header>
  <p></p><p></p>
  <code></code>
</section>
<section class="main-section" id="section_5">
  <header id="element-5">Section 5</header>
  <p></p><p></p>
  <code></code>
</section>
</main>
<style>
@media (min-width: 30em) and (max-width: 80em) {
body {
  background-color: purple;
}
}
</style>
<main id="main-doc"> 
<section class="main-section" id="Javasctipt_and_Java">
  
  <header id="element-1">Javascript and Java</header>
  <p></p><p></p>
  <code></code>
  <nav id="navbar"><header>
  <a href="#Javascript_and_Java" class="nav-link">Javascript and Java 1</a>
  <a href="#section_2" class="nav-link">Section 2 Hello World</a>
  <a href="#section_3" class="nav-link">Section 3</a>
  <a href="#section_4" class="nav-link">Section 4</a>
  <a href="#section_5" class="nav-link">Section 5</a>
  </header>
  </nav>
</section>
<section class="main-section" id="section_2">
  <header id="element-2">Section 2 Hello World</header>
  <p></p><p></p>
  <code></code>
</section>
<section class="main-section" id="section_3">
  <header id="element-3">Section 3</header>
  <p></p><p></p>
  <code></code>
  <ol>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
</section>
<section class="main-section" id="section_4">
  <header id="element-4">Section 4</header>
  <p></p><p></p>
  <code></code>
</section>
<section class="main-section" id="section_5">
  <header id="element-5">Section 5</header>
  <p></p><p></p>
  <code></code>
</section>
</main>
\ file: 

  **Your browser information:**

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

Challenge: Build a Technical Documentation Page

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

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