.nav-link should have an
href attribute that links to its corresponding
.main-section (e.g. If you click on a
.nav-link element that contains the text “Hello world”, the page navigates to a
section element with that id). I do have only five sections and each one has the corresponding href, and still failed.
Am I missing something???
We need to see your code in order to help you find the error.
I tried but it won’t let me. I got a message saying I can only have two links. Weird the way this interface works. Frustrating.
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (
</>) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').