I am struggling to understand what user stories mean. #content 10 and 13 and #layout 1 I thought I have done here is a code pen link
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 first failing message says
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".
There should be one .nav-link for every element with the class of "main-section", and every .nav-link should be within #navbar : expected 15 to equal 8
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 15 to equal 8
Looking at just the first couple of lines in your nav
shows
<ul class="nav-link">
<a href="#introduction" class="nav-link"><li class="nav-link" style="border-top: solid; border-left: solid;">Introduction</li></a>
Right there are three nav-link
classes. The first goes nowhere since it’s just the unordered list tag. And then both the a
and the li
have .nav-link
. Do you really want this?
Both failing messages that you mention are failing for the same reason so you need to revisit.
Side note, all your styling should be external. Do not use in-line styling.
It worked thank you.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.