Landing page test error

Hi guys, am stuck on the landing page test. i have got everything right but the following:

  • Failed:Each .nav-link element should have an href attribute.

  • Failed:Each .nav-link element should link to a corresponding element on the landing page (has an href with a value of another element’s id. e.g. #footer).

my .nav-link elements do have href attributes and link to the corresponding elements on the landing page. what am i missing?

hi there, a few minutes ago this had been asked in the forum.
i think the best help had been jessica , who answered:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css" type="text/css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap" rel="stylesheet">
    <title>KIA</title>
</head>
<body>
    <header id="header">
        <img src="https://i.pinimg.com/736x/62/58/05/62580552d0415f6c85ddd1f0602c9a15.jpg" alt="a kia logo" id="header-img">
        <nav id="nav-bar">
            <ul>
                <li class="nav-link"><a href="#vehicals">Vehicals</a></li>
                <li class="nav-link"><a href="#innovation">Innovation</a></li>
                <li class="nav-link"><a href="#about">About</a></li>
                <li class="nav-link"><a href="#contact">Contact</a></li>
            </ul>
        </nav>
    </header>
    <div class="hero">
        <div class="space"></div>
        <h1>Movement that inspires</h1>
        <img src="https://cdn-ds.com/blogs-media/sites/494/2021/03/18213931/2021-Kia-Seltos-in-desert-landscape_A_o.jpg" alt="kia car" id="hero-img">         
    </div>
    <section id="vehicals">
        <div class="space"></div>
        <h2>Vehicals</h2>
        <p>choose the car that defines you, there is one for every enthusiast</p>
        <div id="gallery">
            <img src="https://www.goteamkia.com/assets/d2766/img/img-get-pre.jpg" alt="a image of kia hatchback" id="cimg1">
            <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR3gjB63sCJn34hfT1knFIwyMpwr_dics3w-w&usqp=CAU" alt=" a image of kia carnival" id="cimg2">
            <img src="https://www.kia.com/us/en/sedans/_jcr_content/root/shortheromediatext_c.coreimg.100.1440.jpeg/1642195612437.jpeg" alt="" id="cimg3">
            <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTVKOCptfxxcVa5UiGERao1D_2bKaleIXOx9w&usqp=CAU" alt="" id="cimg4">
            <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcROrYsqUqzm8y8WplZjUnL5adNSerBol1t-hg&usqp=CAU" alt="">
            <img src="https://dealerimages.dealereprocess.com/image/upload/1109932.jpg" alt="">
            <img src="https://di-uploads-pod20.dealerinspire.com/edvoyleskiaofchamblee/uploads/2019/10/2019.jpg" alt="">
            <img src="https://d3s8goeblmpptu.cloudfront.net/mrp/kia/2022/stinger/2021-kia-stinger_landing-2.jpg" alt="">
        </div>
       
    </section>
    <section id="innovation">
        <div class="space"></div>
        <h2>Innovation</h2>
        <div>
            <h3>EV and HYBRID</h3>
            <p class="describe">Explore electric,hybrid and plug-in Hybrid vehicals</p>
            <iframe id="video" width="974" height="548" src="https://www.youtube.com/embed/6uKWU0Xuitw?list=PLGURpC1mgojlaJPyAxmzJ4mysK7rvpX8w" title="Learn All About Electric Vehicles With the Award-Winning 2020 Kia Niro EV!" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </div>
        <div>
            <h3>Technology</h3>
            <p  class="describe">Explore advanced safety and perfomance enhancing tech</p>
            <iframe id="video" width="974" height="548" src="https://www.youtube.com/embed/D_zW3pC_vDE" title="EV system and new technology l Kia EV6" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </div>
        <div>
            <h3>Connectivity</h3>
            <p class="describe">connect your smartphone or tablet to your vehical with kia connect</p>
            <iframe id="video" width="974" height="548" src="https://www.youtube.com/embed/21Gw1uJVmd0" title="Kia Connect & Kia Access App" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </div>
        <div>
            <h3>Sustainability</h3>
            <p class="describe">See how kia is working towards a more sustainable future.</p>
            <iframe id="video" width="974" height="548" src="https://www.youtube.com/embed/THIqzKim8GU" title="Kia Sustainability | The Ocean Cleanup" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </div>
    </section>
    <section id="about">
        <div class="space"></div>
        <h2>About Us</h2>
        <img src="https://www.kia.com/content/dam/kwcms/kme/global/en/assets/contents/about-kia/kia-company/overview/kia-about-kia-company-kv-w.jpg" alt="">
        <div id="about_us">
         <p >Kia Corporation was founded in May 1944 and is Korea’s oldest manufacturer of motor vehicles. </p>
         <p>From humble origins making bicycles and motorcycles, Kia has grown – as part of the dynamic, global Hyundai-Kia Automotive Group – to become the world’s fifth largest vehicle manufacturer.Today, Kia produces more than 1.4 million vehicles a year at 14 manufacturing and assembly operations in eight countries. </p>
         <p> These vehicles are sold and serviced through a network of more than 3,000 distributors and dealers covering 172 countries. The Corporation has more than 40,000 employees and annual revenues of more than US$17 billion.</p>
         <p>In its ‘home‘ country of South Korea, Kia operates three major vehicle assembly plants – the Hwasung, Sohari and Kwangju facilities – plus a world-class research and development centre employing 8,000 technicians at Namyang and a dedicated environmental R&D centre. The Eco-Technology Research Institute, near Seoul, is working on hydrogen fuel-cell vehicles for the future as well as state-of-the-art end-of-life vehicle recycling technologies and processes.</p>
         <p> Kia spends 6% of its annual revenues on R&D and also runs research centres in the USA, Japan and Germany.</p>
        </div>  
    </section>
    <section id="contact">
        <h2>contact us</h2>
        <p class="form-top">Sign-up for the latest Updates</p>
        <form id="form" action=" https://www.freecodecamp.com/email-submit">
            <input id="email" type="email" name="email" placeholder="jack@gmail.com" required>
            <input type="submit" id="submit">
         </form>
    </section>
    <footer id="footer">
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti qui quo numquam quia voluptates facere iste voluptas distinctio, neque cumque debitis nihil illum laborum labore optio itaque eveniet fuga dolore?</p>
    </footer>
</body>
</html>

thats the html part of my code and yes i have linked it to css