I need help with my personal portfolio

I cannot seem to pass #7 for some reason would anyone mind giving me some feedback?

7. The navbar should contain at least one link that I can click on to navigate to different sections of the page.

When I look at your code:

<nav id="navbar">
    <a  href="#welcome-section">welcome section</a>
    <a href="#projects">projects</a>

<div id="welcome-section">
    <h1>Sacai Section</h2>
  
<div id="projects">
    <div class="project-tile">
    <a href="https://codepen.io/morifingk/pen/JjyyOBv?editors=1100" target="_blank" title="Personal_portfolio">Personal portfolio</a>

I don’t see a closing tag for nav and I see 3 missing closing div tags. I also see this mismatch:

 <h1>Sacai Section</h2>

The tests can’t accurately test a page that they can’t understand. You need to provide a coherent structure. When I clean up those problems, test #7 passes for me.

Everything else still seems to work but that number 7. Could you check to see what I am missing. I obviously have still failed to see it.

@morifingk, 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 test says

The navbar should contain at least one link that I can click on to navigate to different sections of the page.
At least one navbar link should move the page position when clicked : expected false to be true
AssertionError: At least one navbar link should move the page position when clicked : expected false to be true

Do you understand what the test is looking for? There is no min-height to your sections so with no content the links will not cause movement.

But there are other errors on your page.
You were previously told that there was no closing tag for nav and where you put the closing tag makes your whole page one big nav. You don’t want that.
When the nav is closed correctly and I give a min-height to the sections test #7 passes for me.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.