I cannot get past step 4 and 12. I have looked at several videos and articles, but can’t find an answer.
By all accounts, I should pass, but these two steps don’t work.
Below, you’ll see the step and what I’ve worked on.
Some is abridged.
Step 4: Each section
element with the class of main-section
should also have an id
that corresponds with the text of each header
contained within it. Any spaces should be replaced with underscores (e.g. The section that contains the header “JavaScript and Java” should have a corresponding id="JavaScript_and_Java"
)
My code:
First Section Second Section Third Section FourthSection Fifth SectionStep 12: Each element with the class of nav-link
should contain text that corresponds to the header
text within each section
(e.g. if you have a “Hello world” section/header, your navbar should have an element which contains the text “Hello world”)
My code:
nav id=“navbar”>
div class=“divider”>
Main Header
ul>
li>First Section
li>Second Section
/ul>
/nav>
div class=“content”>