Technical Documentation Page - User Story #13

Technical Documentation Page - User Story #13
0

#1

User story : “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.”
my pen - https://codepen.io/irakli12345/pen/djxvrE
It performs exactly as described, yet still fails. I checked for typos and even spaces :frowning:


#2

There was a space before the closing quotes in
href="#advanced_stuff" in your anchor tag and so the navigation for that link wasn’t working
When i cleared it, #13 is passed and the navigation also works


#3

Hi…
I think error is because the last nav-link (advance_stuff) is in two lines… when i tried putting them in one line, the error is going.
And consider adding the script in top of your html page so that we can test from browser only…


#4

thank you.:star_struck:


#5

I usually copied and pasted it in the fork-me link, but i’ll figure out adding the script! thanks :slight_smile:


#6

if you need any help with that, i will be happy to help.


#7

No, figured it out already! appreciate it though