Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

I am stuck on Step 31 where it keeps telling me that each a element should have an href attribute even though I have clearly done that. I have also done the target links as well. I don’t see what the issue is.

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="description" content="Contains brief descriptions of various cities throughout the world.">
    <title>Travel Agency Page</title>
  </head>
  <body>
  <h1>Discover Italy</h1>
  <p>Choose among our various packages in exploring Italy. You will discover famous cuisine, architecture, culture, and more.</p>
  <h2>Packages</h2>
  <p>We offer an extensive range of Group Tours and Private Tours to fit everyone's needs.</p>
  <ul>
    <li><a href="https://www.freecodecamp.org/learn" target="_blank">Group Travels</a></li>
    <li><a href="https://www.freecodecamp.org/learn" target="_blank">Private Tours</a></li>
  </ul>
  <h2>Top Itineraries</h2>
  <figure>
    <a href="https://freecodecamp.org/learn" target="_blank">
    <img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="A gigantic stone colosseum">
    </a>
    <figcaption>Rome Italy</figcaption>
  </figure>
  <figure>
    <a href="https://freecodecamp.org/learn" target="_blank">
    <img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="A wildlife park">
    </a>
    <figcaption>National Park in Italy</figcaption>
  </figure>
  <figure>
    <a href="https://freecodecamp.org/learn" target="_blank">
    <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="A sea on the coast of Italy">
    </a>
    <figcaption>A south Italy sea</figcaption>
  </body>
</html>
  

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

Welcome to the forum @mseay702 !

Does each of your href attributes have this exact value:
"https://www.freecodecamp.org/learn"?

Happy coding!

Yes I kept on double checking that every one of my href attributes have that exact value. I was thinking that I accidentally misspelled a word or forgot a quotation mark somwhere, but it doesn’t look like it as far as I can tell!

This does not match this:
href="https://www.freecodecamp.org/learn"

Thank you so much! It was the www all along :rofl:. I appreciate your help!

1 Like

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