https://codepen.io/Filip-Tomic/pen/yLaoOyK
I have a problem with
5. When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.’
But when i click on a nav-link it takes me where it needs to
A anchor have exactly the same href="#features" like the id=“features” of section
When a test fails, read more than just the first line.
The failing message reads;
When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.'
Each .nav-link element should have an href attribute : expected false to equal true
AssertionError: Each .nav-link element should have an href attribute : expected false to equal true
The second line is important. It says “Each .nav-link element should have an href attribute : expected false to equal true”.
Here is your code;
<ul class="nav-link">
<a class="nav-link" href="#features">Features</a>
<a class="nav-link" href="#how-it-works">How it works</a>
<a class="nav-link" href="#pricing">Pricing</a>
</ul>
There are four elements that contain .nav-link
Only three go somewhere on your page.
1 Like
AOOOOO thanks i get it now, thanks so much