One of my links is not working in technical document page

Could someone please tell me why my “Being a safe driver” link isn’t working…

You forgot the #symbol at the start of the id name.

i would also suggest you to maybe change the overall look of the website because right now its really hard to differentiate between the different sections of the website and your navbar has a position of fixed which makes it go off the screen when the screen width is made smaller.

Hope this helped! :slightly_smiling_face:

Hi @jacobplw99 !

I edited the title of your post to remove the link.
Please avoid placing links in the title since we cannot click on them.

@jacobplw99, you’ve been given the answer but in the future when a test fails click the red button to see which test(s) are failing and text to help you correct the issue.

  • Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.
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>.
Every .nav-link should have an href value that links it to its corresponding .main-section (e.g. href="#Introduction"). Check that these .main-section ids have corresponding href values : Driving_safely. : expected 1 to equal 0 
AssertionError: Every .nav-link should have an href value that links it to its corresponding .main-section (e.g. href="#Introduction"). Check that these .main-section ids have corresponding href values : Driving_safely. : expected 1 to equal 0

Hope this helps and you can see how the test tells you what it’s looking for.

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