Personal Portfolio Webpage-Stuck

PLEASE HELP

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

What to do to resolve the above issue?

Hello.

Note: Your link should point to the <section id="found-me"></section>.
and should be able navigate to that section.

<ul>
    <li><a href="#found-me"> Where are you</a></li>
</ul>
<section id="found-me">
</section>
1 Like

@javedk, 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 full failing test message 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

Since there is no content on your page there is not a way it can scroll.

1 Like

Thank you very much. What is the meaning of “expected false to be true”?
Also where to learn the interpretation of the messages like:

expected null to not equal null
AssertionError: expected null to not equal null
at Proxy.c (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:549:1889)
at Proxy.u (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:431:130)
at Function.n.isNotNull (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:574:1549)
at n. (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:608:105975)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:259477
at ny.Tg.run (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:259772)
at r.Qg.runTest (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:274680)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:275616
at o (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:274033)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:274103

True or false, did you find what you were looking for?
It didn’t so it answered false but the expected answer to that question is true.

“Expected null to not equal null” means there was nothing and it expected to find something.
I’d need to see the entire message to give a better interpretation but it could be that the test is looking for an id attribute and there isn’t one.

After the assertion error is a stack trace. Don’t worry about any of that.

The main takeaway is that you need to read more than the first line in the failing error messages as the next lines tell you what the test was looking for and what you can do to correct it.

Hope that helps.

1 Like

The problem is that I do not understand
2. “The height of the welcome section should be equal to the height of the viewport.”

Hello.
You can look for relative units online, do some experiments with them.

.class { 
 height: 100vh; /*set height equal to the height of the viewport */
}
1 Like

What this is saying is that when the page is open full view the welcome section should fit in the space equal to the viewport (browser) height.

Someone has given you the answer but even following their instruction the test will still fail for two reasons

  1. Your media query is not closed correctly so until you do that the test will always fail.
  2. If you set the height as given the test will fail because in addition to setting it to the view height you’re also adding padding on top of it. You need to get rid of that.

Correcting the two issues above will help the tests to pass.

On a side note, your code contains syntax errors. There is no such tag as navbar.
Run your HTML code through the W3C validator.

1 Like

Seems complicated and incomprehensible. But I’ll try. Thank you.

Come back and ask questions on what you don’t understand.

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