Product Landing Page - Build a Product Landing Page

I keep getting the same 2 error messages can anyone teach me ?
The error messages:

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 ).

Your Product Landing Page should use CSS Flexbox at least once.

My code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Product Landing Page</title>
    <link rel="stylesheet" href="styles.css">
    <header id="header">
      <div class="logo">
      <img id="header-img" src="">
      <nav id="nav-bar">
        <a class="nav-link" href="">Portfolio</a>
        <a class="nav-link" href="">Projects</a>
        <a class="nav-link" href="">About Me</a>         
          <video id="video" src="">
    <form id="form" action="">
            <input id="email" name="email"type="email"placeholder="wsp">
            <input id="submit" type="submit">
/* file: styles.css */
@media (max-width: 100%) {
  .nav-bar {
    padding: 2rem;

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

Your code doesn’t have any element with an ‘id’ that corresponds to the value of the ‘href’ attribute, which in return, doesn’t have the value at all (href=“”).

I dont really understand can you explain more please

This link should have a value for the href attribute. For example:

<a class="nav-link" href="#Portfolio">Portfolio</a>

Then, you should have an html element in your code with the id set to the value of “Portfolio”:

<section id="Portfolio">

This is guidance.

Btw, you have more than one unclosed element.

Thank you so much!!

I will look into it :slight_smile:

1 Like

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