Build a Technical Documentation Page driving me crazy

Tell us what’s happening: Hey people this beyond driving me crazy…
This is the error i keep getting.

When I click on a navbar element, the page should navigate to the corresponding section of the “main-doc” element (e.g. If I click on a “nav-link” element that contains the text “Hello world”, the page navigates to a <section> element that has that id and contains the corresponding <header>.

But the thing is when i click on the text (Nav Link) it does take me to the section… I made five and all five work. So i do not know what i am doing wrong… Can anyone help me as this is now holding me up and wasting my time.

Thanks

Your code so far

Your browser information:

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

Link to the challenge:

Can you share your demo via codepen?

Hi Shimphillip
Thank you for the reply. I am quite new to Codenpen. How do i share my code? When I click on share it only wants me to share on twitter or Faceboojk

You will need to signup at https://codepen.io/

Then create an account and create a pen. This is where you can upload your code and it will display the output right away.

Then you can save your code and share your url.

Hope this works

It does work.

You have a typo. It’s nav-link not navlink.

Mate you are a star… Thank you so much