13. 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 element that has that id and contains the corresponding .
I don’t understand why this fails
My code till now
Hey! welcome to the freecodecamp community forums!
I would recommend you not to use id names this long because the more you have to type, the more errors you would have in your code.
Hope this helped!
Thanks! Yes I should do that
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.