Similar to what I had going on in a previous forum entry. My Product Landing Page that I did back when Free Code Camp used Codepen.io for building and test running passes on Codepen but fails to acknowledge that there are nav-link elements and that they each contain and href attribute. I’m also getting an error after that says…
I don’t know if the email reply works so I’m being redundant here. Yes I understand now the link so the file knows where to find the stylesheet. I did add that to my code right after I copied and pasted it from Codepen. In any case, I cleared the cache and restarted the browser but I still get the errors
Each .nav-link element should have an href attribute.
Each .nav-link element should link to a corresponding element on the landing page (has an href with a value of another element's id. e.g. #footer).
// tests completed
// console output
[TypeError: Cannot read properties of null (reading 'slice')]
Unsure if there is a way to share a link to the project on FCC
You should copy your entire code with the link element so we can test it on our end to see if we can reproduce the problem
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.
The html you just posted is different then your codepen HTML.
The error message of
Each .nav-link element should link to a corresponding element on the landing page (has an href with a value of another element’s id. e.g. #footer).
told me there was a section missing with the corresponding id.
And in the latest code your posted you are missing this <section id="Home"></section>
Your original codepen had that, so you must have removed that by accident.