Technical documnet

Tell us what’s happening:
Describe your issue in detail here.
Can you tell me what is wrong with my code? I am still stuck at this step: Each .main-section should have an id that matches the text of its first child, having any spaces in the child’s text replaced with underscores (_ ) for the id’s.

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8" />
  <title>Piano</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" href="./styles.css">
</head>
<body>
  <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>
      <section class="main-section" id="Declaring_variables">
      <header>Declaring variables</header>
      </section>
      <section class="main-section" id="Variable_scope">
      <header>Variable scope</header>
      </section>
      <section class="main-section" id="Global_variables">
      <header>Global variables</header>
      </section>
      <section class="main-section" id="Constants">
      <header>Constants</header>
      </section>
      <section class="main-section" id="Data_types">
      <header>Data types
</header>
      </section>
      <section class="main-section" id="if...else_statement">
      <header>if...else statement</header>
      </section>
      <section class="main-section" id="while _statement">
      <header>while statement</header>
      </section>
      <section class="main-section" id="Function_declarations">
      <header>Function declarations
</header>
      </section>
      <section class="main-section" id="Reference">
      <header>Reference
</header>
      </section>
  </main>
</body>
</html>
/* file: styles.css */

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Build a Technical Documentation Page

Link to the challenge:

You seem to have an extra space after while in the id.

1 Like

wow, that helps a lot, I was stuck at this for like 15 minutes. Thanks so much!!!

1 Like