Test technical documentation problem

I finished all page but couldn’t understand why test 4 is failing.
Pen: https://codepen.io/PufflyMuffin/pen/RwLaBXa?editors=1100

1 Like

Hello!

What you have written is actually fine, but the test asks you to use underscores in place of spaces, whereas you’ve used hyphens. So if you change these in your section ids, as well as your nav-link href values, you should be good!

Hope this helps!

1 Like

@puffy, 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

Each <section> element with the class of "main-section" should also have an id comprised of the <header> innerText contained within it, with underscores in place of spaces. The id may include special characters if there are special characters in the respective <header> innerText. (e.g. The <section> that contains the header, "JavaScript & Java", should have a corresponding id="JavaScript_&_Java").
Some "main-section" elements are missing the following ids (don't forget to replace spaces with underscores!) : WHAT_YOU_SHOULD_ALREADY_KNOW,HELLO_WORLD,DECLARING_VARIABLES,VARIABLE_SCOPE,GLOBAL_VARIABLES,DATA_TYPES,IF...ELSE_STATEMENT,WHILE_STATEMENT,FUNCTION_DECLARATIONS : expected 9 to equal 0
AssertionError: Some "main-section" elements are missing the following ids (don't forget to replace spaces with underscores!) : WHAT_YOU_SHOULD_ALREADY_KNOW,HELLO_WORLD,DECLARING_VARIABLES,VARIABLE_SCOPE,GLOBAL_VARIABLES,DATA_TYPES,IF...ELSE_STATEMENT,WHILE_STATEMENT,FUNCTION_DECLARATIONS : expected 9 to equal 0

On a side note, your code looks almost like a copy of the sample project with a few subtle changes.

  • Make the project from scratch, with your own code, style and content. Don’t take code from the sample project.
    The projects are not just another challenge. Each one is meant to be a significant step in your progress. Every project you do will require research, planning, trial and error, and strengthening your skills beyond what you gained from the incremental challenges.
    The hardest part of coding is looking at a problem and coming up with a plan to solve that problem. Starting out by looking at someone else’s code completely bypasses that step.
1 Like

That’s the best response I’ve ever had. I was planning to work on a portfolio with React but rules say it can be a problem, so that’s why I tried to create the same page on my own. I think now, I should’ve set sizes on my own and customized the page for myself.