Please help, dont know why its not working

User Story #10: Additionally, the navbar should contain link ( a ) elements with the class of nav-link . There should be one for every element with the class main-section
(i have done it be still not work)

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

Additionally, the navbar should contain link (<a>) elements with the class of "nav-link". There should be one for every element with the class "main-section".
There should be one .nav-link for every element with the class of "main-section", and every .nav-link should be within #navbar : expected 12 to equal 9
AssertionError: There should be one .nav-link for every element with the class of "main-section", and every .nav-link should be within #navbar : expected 12 to equal 9

Two things are causing the test to fail -

  1. There an anchor element in your nav that’s not closed correctly
  2. One of your sections has an incorrect class name.

Only because it sticks out to me
Do not use the <br> element to force line breaks or spacing. That’s what CSS is for.
Reference MDN Docs

1 Like

okay, thank you. will pay get attention to the spellings