Product landing page user story #5 error help

<header id="header">
            <nav id="nav-bar">
                <div class="nav-link pricing">
                    <a class="nav-link" href="#pricing">Purchase</a>
                </div>
                <div class="nav-link reviews">
                    <a class="nav-link" href="#reviews">Reviews</a>
                </div>
                <div class="nav-link description">
                    <a class="nav-link" href="#features">Features</a>
                </div>
                <img id="header-img" src="https://cdn.discordapp.com/attachments/957025122563293305/968881752863039558/logo.png.pdf">
            </nav>
        </header>

error message:
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

pls help

Hi @mattmaster333
My first thought is that you have a number of div-elements with the class" nav-link" that technically doesn’t have a “href attribute” themselves. Only the a-element have those at the moment. Let me know if that helps.

that helped thank you

Great! Then you can mark this thread as solved so others don’t see it as a question that is unanswered :slight_smile:

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