Build a Travel Agency Page - Build a Travel Agency error on 31 Page

Tell us what’s happening:

I keep getting a error for “31. Each a element should have an href attribute with the value of https://www.freecodecamp.org/learn. Don’t forget the links in the list items”. I have gone to the forums to review previous question and gone over my code multiple times but can’t seem to find what’s wrong with my code.

Your code so far

<!DOCtype html>
<html lang="en">
  <head> 
    <meta charset="utf-8"> 
    <meta name="description" content="non-empty content">
    <title>Travel Agency Page</title>
  </head>
  <body>
    <h1>Travel Destinations</h1>
    <p>introducing the travel opportunities.</p>
    <h2>Packages</h2>
    <p>Introducing the various packages</p>
    <ul>
      <li><a href src="https://www.freecodecamp.org/learn" target="_blank">Group Travels</a></li>
      <li><a href src="https://www.freecodecamp.org/learn" target="_blank">Private Tours</a></li>
    </ul>
    <h2>Top Itineraries</h2>
    <figure>
      <a href src="https://www.freecodecamp.org/learn" target="_blank"><img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="appropriate value"></a>
      <figcaption>Some Text</figcaption>
    </figure>
    <figure>
      <a href src="https://www.freecodecamp.org/learn" target="_blank"><img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="appropriate value"></a>
      <figcaption>Some Text</figcaption>
    </figure>
    <figure>
      <a href src="https://www.freecodecamp.org/learn" target="_blank"><img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="appropriate value"></a>
      <figcaption>Some Text</figcaption>
    </figure>
    </body>
  </html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

Hi and welcome to the community!
Are you sure about using src with anchor elements?

1 Like

it doesn’t look like your hrefs have a value, think about what the test is asking and what you have

1 Like

Wow I can’t believe I made such a simple error. You don’t understand how much I looked at my code and these forums . The weird thing is the text was still linking in the sample. Thank you so much.

1 Like

Thank you for the help