# Just one more test

**URL:** <https://forum.freecodecamp.org/t/just-one-more-test/385177>\
**Category:** General\
**Created:** [May 7, 2020, 2:32pm UTC](https://forum.freecodecamp.org/t/just-one-more-test/385177 "2020-05-07T14:32:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jenmal898](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@Jenmal898](https://forum.freecodecamp.org/u/Jenmal898)\
**Post date:** [May 7, 2020, 2:32pm UTC](https://forum.freecodecamp.org/t/just-one-more-test/385177/1 "2020-05-07T14:32:28Z")

</div>

> **[GRD Landing Page](https://codepen.io/jennifer-maldonado/pen/OJygReG?editors=1100)**
>
> ...

Hello! For my landing page, I am only passing 15/16. I cannot figure out, why I am not able to pass the last test. Also, if you have time, please give any suggestions to improve my page?

PS) I do have plans to go over all of my projects and make them mobile friendly. I just plan to do this once I complete all 5 projects, and feel more confident to be able to tinker with the code without making a complete mess. Any suggestions for this as well?

Thank you all for your time and patience! Happy coding 🙂

---

<div class="post-metadata">

**Author:** ![nibble](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nibble/32/123681_2.png) [@nibble](https://forum.freecodecamp.org/u/nibble)\
**Post date:** [May 7, 2020, 2:41pm UTC](https://forum.freecodecamp.org/t/just-one-more-test/385177/2 "2020-05-07T14:41:05Z")

</div>

You are passing only 15/16 tests because your `nav-link` buttons do not link to their respective sections of the page.  
For example:

```auto
<button ><a class="nav-link" href="#price"><i class="fa fa-credit-card"></i>
Pricing</a></button>

```

You are supposed to make all the `nav-link` elements point to their corresponding sections like the one above. You are applying the class `nav-link` on the wrong elements. It must be on the `a` elements.

---

<div class="post-metadata">

**Author:** ![Jenmal898](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@Jenmal898](https://forum.freecodecamp.org/u/Jenmal898)\
**Post date:** [May 7, 2020, 2:52pm UTC](https://forum.freecodecamp.org/t/just-one-more-test/385177/3 "2020-05-07T14:52:47Z")

</div>

Do my nav-links have to be buttons? I made a dropdown menu, and I used an unordered list to build it, but it does have links… I tried using the list items but it wouldnt let me ☹

---

<div class="post-metadata">

**Author:** ![Catalactics](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catalactics/32/151364_2.png) [@Catalactics](https://forum.freecodecamp.org/u/Catalactics)\
**Post date:** [May 7, 2020, 2:53pm UTC](https://forum.freecodecamp.org/t/just-one-more-test/385177/4 "2020-05-07T14:53:41Z")

</div>

Your Nav does not have to be button. It is NOT supposed to be buttons. You can use an unordered list. There are other alternatives that I used like just straight up links

```auto
<nav>
  <a href="#">Home</a>
  <a href="#">About</a>
  <a href="#">Contact</a>
</nav>

```

---

<div class="post-metadata">

**Author:** ![nibble](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nibble/32/123681_2.png) [@nibble](https://forum.freecodecamp.org/u/nibble)\
**Post date:** [May 7, 2020, 2:54pm UTC](https://forum.freecodecamp.org/t/just-one-more-test/385177/5 "2020-05-07T14:54:50Z")

</div>

It can be buttons. Just transfer the `nav-link` class to the `a` elements which when clicked takes you to the corresponding section.

---

<div class="post-metadata">

**Author:** ![Catalactics](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catalactics/32/151364_2.png) [@Catalactics](https://forum.freecodecamp.org/u/Catalactics)\
**Post date:** [May 7, 2020, 2:58pm UTC](https://forum.freecodecamp.org/t/just-one-more-test/385177/6 "2020-05-07T14:58:57Z")

</div>

Well its not supposed to really be buttons, because you are not supposed to wrap buttons inside an `a` tag

---

<div class="post-metadata">

**Author:** ![nibble](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nibble/32/123681_2.png) [@nibble](https://forum.freecodecamp.org/u/nibble)\
**Post date:** [May 7, 2020, 3:11pm UTC](https://forum.freecodecamp.org/t/just-one-more-test/385177/7 "2020-05-07T15:11:51Z")

</div>

He actually did the right thing. He didn’t wrap the `button` inside the `a` elements but instead wrapped `a` element inside the `button`. His usage of a button to wrap `a` elements is not wrong as per the assignment(Not sure about HTML semantics or best practice because people mostly wrap navigation links inside `li`). He just needed to apply `nav-links` class on the `a` elements because they are the elements linking to the different sections of the page.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:55pm UTC](https://forum.freecodecamp.org/t/just-one-more-test/385177/8 "2021-06-01T18:55:31Z")

</div>

Closed on June 1, 2021, 6:55pm UTC


