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

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ 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

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