My technical documentation page is not so technical

Hi!!! So I’m trying to do the technical documentation activity, I keep getting 15/16. It says the problem is that I have not linked my titles to where they are on the main doc (i.e when I click a title on the side, it should take me to where that title is on the main doc). Anyone want to take a look :confused:
https://codepen.io/Esohe_Aideyan/pen/jOBPrJw

Screenshots are not helpful. It’s best to provide a link to your code.

That said, 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.

Awesome, just edited it. I have also read the error messages but still no luck.

Check that these .main-section ids have corresponding href values : JavaScript_and_Java,if_else_statements

check the corresponding hrefs, make sure there are no errors

1 Like

Typo’s are hard to spot. There are two “links” in your nav that are not properly formatted.

Edit: so the failing message does provide some direction. And yes, it can sometimes seem cryptic.
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 : JavaScript_and_Java,if_else_statements : expected 2 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 : JavaScript_and_Java,if_else_statements : expected 2 to equal 0

The last line, the AssertionError, tells you which two elements are incorrect.

Thank you so much, was literally just missing 2 hashtags!

1 Like

Yes, that’s all it was. Glad to help.

You have other issues to work on but I’m sure you’ll figure them out.

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