Not all of the elements with the class of "nav-link" are <a> '

Hi everyone.

So, I am doing the Technical documentation project, and I am stuck with the code that is not being recognized by the test.

It is saying that Not all of the elements with the class of “nav-link” are <*a> .

May you guys help me ?

<nav id="navbar">
    <a class="nav-link" href="#What_is_CSS"><li>What is CSS</li></a>
    <a class="nav-link" href="#CSS_Example"><li>CSS Example</li></a>
    <a class="nav-link" href="#CSS_Containers"><li>CSS Containers</li</a>
    <a class="nav-link" href="#CSS_Colors"><li>CSS Colors</li></a>
    <a class="nav-link" href="#CSS_Borders"><li>CSS Borders</li></a>
    <a class="nav-link" href="#Reference"><li>Reference</li></a>

Hi Oliver_Oliver,
You are missing a closing tag >

<a class="nav-link" href="#CSS_Containers"><li>CSS Containers</li</a>

should be

<a class="nav-link" href="#CSS_Containers"><li>CSS Containers</li></a>
1 Like

LOL, omg, i checked it thousands of times and i did not see that.

I would say that, as the error was not related to the element<li> i did not see.

Anyway, appreciate your help dude.