Need help with the “Build a Technical Documentation Page” project please

I’m stuck on the 13th user story and don’t know what im doing wrong please help im losing it.
User Story #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 section element that has that id and contains the corresponding header .
and here is my project:

Its time to train your problem solving skill dont easily give up :grin:

Hi @sako_ranj !

Welcome to the forum!

It is always important to read the full error message.
There is more to that error message than what you posted.

It will tell you where the problem is.

Once you find the location of the problem, you will also find that you have a html syntax error with your ids.

Hope that helps!

1 Like

@sako_ranj, 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.

The failing message says

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 : Introduction : 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 : Introduction : expected 1 to equal 0
1 Like

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