Technical Documentation Page - Build a Technical Documentation Page

hi im stuck with the id in my main section and the nav link code. everything works but the code is not passing. please help?
Failed: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.

Each .nav-link should have an href attribute that links to its corresponding .main-section (e.g. If you click on a .nav-link element that contains the text “Hello world”, the page navigates to a section element with that id).

  <nav id='navbar'>
 <header>
   <h1>Build A Healthy Brain</h1>
   
    <ul>
      <li><a href="#The_Science_Behind_Building_Neurons_and_Astrocytes" class='nav-link list-group-item' >The Science Behind Building Neurons and Astrocytes</li></a>
      <li><a href="#Supplies_Needed_To_Build_Neurons_and_Astrocytes" class='nav-link list-group-item'>Supplies Needed To Build Neurons and Astrocytes</a></li>
         <li><a href="#Weaving_Neurons_and_Astrocytes" class='nav-link list-group-item'>Weaving Neurons and Astrocytes</a></li>
      <li><a href="#Crocheting_Neurons_and_Astrocytes" class='nav-link list-group-item'>Crocheting Neurons and Astrocytes</a></li>
      <li><a href="#Knitting_Neurons_and_Astrocytes" class='nav-link list-group-item'>Knitting Neurons and Astrocytes</a></li>
      <li><a href="#Building_A_Healthy_Brain" class='nav-link list-group-item'>Building A Healthy Brain</a></li>
     
      
    </ul>
  </nav>
</header>

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

Post the entire html and css code here.

hi @DobarBREND here is my code:

Building A Neuron
<main id='main-doc'>
    
  

 
  <nav id='navbar'>
 <header>
   <h1>Build A Healthy Brain</h1>
   
    <ul>
      <li><a href="#The_Science_Behind_Building_Neurons_and_Astrocytes" class='nav-link list-group-item' >The Science Behind Building Neurons and Astrocytes</li></a>
      <li><a href="#Supplies_Needed_To_Build_Neurons_and_Astrocytes" class='nav-link list-group-item'>Supplies Needed To Build Neurons and Astrocytes</a></li>
         <li><a href="#Weaving_Neurons_and_Astrocytes" class='nav-link list-group-item'>Weaving Neurons and Astrocytes</a></li>
      <li><a href="#Crocheting_Neurons_and_Astrocytes" class='nav-link list-group-item'>Crocheting Neurons and Astrocytes</a></li>
      <li><a href="#Knitting_Neurons_and_Astrocytes" class='nav-link list-group-item'>Knitting Neurons and Astrocytes</a></li>
      <li><a href="#Building_A_Healthy_Brain" class='nav-link list-group-item'>Building A Healthy Brain</a></li>
     
      
    </ul>
  </nav>
</header>

  <section class='main-section'id='The_Science_Behind_Building_Neurons_and_Astrocyte'>
    <header>The Science Behind Building Neurons and Astrocytes</header>
    <p>Neural Knitworks are based on the principle that yarn craft, with its mental challenges, social connection and mindfulness, helps keep our brains and minds sharp, engaged and healthy. When we create neurons and astrocytes the neurons and astrocytes in our brain get to see what they look like. This mirroring excites our neurons and astrocytes and helps make stronger connections with the neurons and astrocytes.</p>
    </section>
  <section class='main-section' id='Supplies_Needed_To_Build_Neurons_and_Astrocytes'>
    <header>Supplies Needed To Build Neurons and Astrocytes</header>
  <p>Your supplies are dependent on which fiber arts method you would like to use</p>
  <p>All of the techniques require yarn. If crocheting or knitting you will also need the proper needles. When weaving you will also need pipe cleaners, recyclable plastic and some rubberbands.</section>
  <section class='main-section' id='Weaving_Neurons_and_Astrocytes'>
    <header>Weaving Neurons and Astrocytes</header>
       <p>Weaving Neurons is so much fun!! We start by creating a nucleus with the plastic. You do this by folding the plastic into the smallest square you can form.We then add the rubberband to the plastic to create the connections for the pipe cleaners aka Dendrites</p>
  <p>Now you can begin to build your cell body by wrapping yarn around the plastic and pipe cleaners aka your nucleus and dendrites.</section>
  <img  id='weaving-neuron' src='https://lh3.googleusercontent.com/ynOI55eyPi04auB2tj8JRs7XQRRZXn6RyK8x2Lfph9m-2thelbPFrZTZml3mhq7TnZHir7AlPofwOf4UMf18VOeRIpHts7zK3HrLmPXaKvO0k3x5pUUc3xAbD9I5cgZIVnxYIOlK9WQ8fPIextZdmYOHxym8BA1DW4B1odnxOXn7wfHmGGJEDQZD7IWntaHP1PjmF3-r36eRdjCN6Xv-iOM4lYXZQ4azakXxadx-MW0J6onSAU-0VBL97hKaO4VFp1CcKpaZ3AGVOwSEx_T6PIyj9s9u4sz6e-IINs0R-NF6GPjvOlySjZ0qnFfXo3p3xtTeMNjDljYXADRENNIcRRZdUVwsvk146uj0jCNvehifyTWOUm0zRlkAYijLX58eufCM0DzseZNaZ-TuhBHlzv8HGO6T11A3YtXA9UDsSvQO3gmFoc8CMH_KUZcqm7wgqk3ZLRFArCRb1Z6IgVssEyu1L-rK88aoQCXJiciwws63kvqXz-VlvWKusb9QO8ZOhFbRtHgAIhw8K34_ArVHK1zoUO4mNG2eIRjfjensJe3L7mMwyHFmGkqLKFadHLEiGRuxuaxa2ib-OpHyKAPVZ7e1kHMkwrZ0SSZo4XX_QVbWBDHJABcS5LkGHTdjxzSgbmMMfKx6y9D2eNhb5fGEJyNqY9JOv__Seo5kiJBQzOJ0Q1mhlfQ5lkf5a5ryVeuJ5zwiY8NxxJEG75pERCpE5OA9qol1XxxJ85MLp61pH6wO9AAVxNK10mRi7Cnj1GqLD1seWpIAX4y5MlrK-2ERX7RQKtKOBAPp1Zooeh8mcF9xLUyS0LPfPUOGIgpZRbswPXfPwWzaj-RW6wxdWbV--ST9O1NmzPTSDcGNjzMkGDNHr5QyAue8Z6Djc-lwUrxre3T_EF-Gkg-1TWKme7wQaU9RP2oVh7PEQXh90t834nIQSQ=w791-h1024-s-no?authuser=0'/>

  <section class='main-section' id='Crocheting_Neurons_and_Astrocytes'>
    <header>Crocheting Neurons and Astrocytes</header>
  <p>Ready to take your crocheting skills to the next level? Using dc you will create the neuron and astrocyte with ease!!</p> </section>
      <section class='main-section' id='Knitting_Neurons_and_Astrocytes'>
        <header>Knitting Neurons and Astrocytes</header>
      <p>Knitting neurons and astrocytes is exciting and helps create skills with our craft.</p>
      <p>Materials</p>
  • 8 ply or double knitting yarn
  • (sample used less than ½ ball of 100% acrylic knitting yarn
  • size 9 (3.75mm) needles, double pointed if you have them
  • Tapestry needle
  • Small amount of stuffing & a few pipe cleaners
  • Safety pin or spare yarn
  • Building A Healthy Brain

    Now that you have built some neurons and astrocytes, lets put them together and build our healthy brains. The green image is what our astrocytes look like and the blue image is what our neurons look like.

  <img id='diagram' src='https://lh3.googleusercontent.com/DwqwgrGnemEMc02st_osaST638O4rmTT3voVPI12_uzPZVwWRPEzmTQTVORaO7MjrfHm7BqYWyTuco9tj58MkP2Dmh6XNoqn9KXjmXc1U7D4OwsavxAdIhVxEOrqbTvbevxwV8OpAX6z1M7qaawd6AMNteqxlXUOD1mGzVhtkMtjKd3kKdCR-dRdvIWAl5BLtpF5lmDiU3RKx9In7OqTqR8vFj6-_1pVMbtgnOKL5PwtibyVZ9KwkX2yMuir4UxXczq_sDOctbP6xemQOUTVBQuYYQig09woBUog9B1B-jK0cFWAut-SG8RVAsCuPmhUYUXPOApESbhbvlLYUcvvPpX14qMlGcP_UDOXRN_l7Esdw5ndjIs3YCGVG30LyG4GXzGk45lwTuH1-pUWh_6O3-E0X4fJrHhpNWTdzNJLofjGuFHfFLUdDrrKuUiHaZQuOlncweEugKsWR986LeBIuDDqHwWicLBoiN8P6B6Z81nEaSv5lPc4WNDtCHdFBEVay-AOC98b3bIbktNGl0y45GWutAtuAojhRZDb1GlvnZa73FyK9a2khWMQzNlSqG99iQh7sKSdDsqTz1GRbU_DiHVbf3K7odhX__UeU03boiBErSOjNBObMaY2DW0a9Y98GBTfQHWcYIL2HjuQRtD2GmHAPjCC5CEyAoA_0bap3X4q0_cARZqjnyO9E2QAeZEwDJWbkZaM-wAqK4QsRgxFW0moBZCILPZsnep7lJX9oMeHwPvDXtE6OBgGQIvM9N3zgSwOh0bUVlEVf9rJXvRjZowyM5RmPus6xr0NHZMLUJgUsa2D75_YYDObv26CVGJwfsxC0Bip2zz5M_uulCVAt4XLKrEku0r4F00_HdkRrK7Bu9Vnx0n7vx6ixy5zQaPk4p8HJPtV3L8TBvOhyGBTMjCsAZbfhzaccnYBzVrrK212wQ=w222-h227-s-no?authuser=0'>
  <p></p>
  <p></p>
  <code>
    function greetMe(yourName) { alert("Hello " + yourName); }
    greetMe("World");
  </code>
  <code>

function greetMe(yourName) { alert("Hello " + yourName); }
greetMe(“World”);


function greetMe(yourName) { alert("Hello " + yourName); }
greetMe(“World”);


function greetMe(yourName) { alert("Hello " + yourName); }
greetMe(“World”);


function greetMe(yourName) { alert("Hello " + yourName); }
greetMe(“World”);


function greetMe(yourName) { alert("Hello " + yourName); }
greetMe(“World”);


#weaving-neuron{
width: 100%;
max-width: 350px;
height: 300px;
object-fit: cover;
border-radius: 10px;
padding:20px 10px;
}
#diagram{
width: 70%;
max-width: 350px;
height: 200px;
object-fit: cover;
border-radius: 10px;
padding:20px 10px;

}

@media (max-width: 1199px) and (min-width: 769px){
#navbar{
width: 358px;
content: “”;
position: absolute;
left: -18px;
}
}

From what you have posted, I see that you have six nav-link elements and only five section elements. The href and id value is not the same:

<li><a href="#The_Science_Behind_Building_Neurons_and_Astrocytes" class='nav-link list-group-item' >...

<section class='main-section' id='The_Science_Behind_Building_Neurons_and_Astrocyte'>

Maybe there are other misspelling in the text. Check it out all.

1 Like

thanks, so much!! :smiley:

1 Like

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