(SOLVED) Problem with anchor elements (landing product webpage)

Hello everybody!
I need help with the “landing product webpage” project I’ve been strugling with it for hours!
Specifically with the anchor elements “nav-links”.(user story #5) I couldn’t pass that test no matter what I did.
Here’s my code :

<!DOCTYPE html>
<html lang="es" dir="ltr">
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="./css/style.css">
    <title></title>
  </head>
  <body>
    <header id="header">
      <nav id="nav-bar">
        <p  class="nav-link"> <a href="#div1">1</a></p>
        <p  class="nav-link"> <a href="#div2">2</a></p>
        <p  class="nav-link"> <a href="#div3">3</a></p>
      </nav>
    </header>
    <div id="div1">
      <p>A</p>
    </div>
    <div id="div2">
      <p>B</p>
    </div>
    <div id="div3">
      <p>C</p>
    </div>
  </body>
</html>

what is wrong with it?
Thanks in advance!

SOLUTION:
Never mind. I just solve it. The problem was that I put [class=“nav-link”] to the “p” element instead of putting within the “a” element. That was it.
I’ll leave this post and solution. It might hopefully help others. Cheers!