Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

Failed: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.

Your code so far

<!DOCTYPE html>
<html lang="en">

<head>
<title>Travel Agency Page></title>
<meta name="description" content="_blank"> 
<meta charset="UTF-8"/>
</head>

<body>
<h1>Discovery Italy</h1>
<p>Art, folklore, food, nature, and more. Choose among our wide selection of guided tours and excursions, and live an unforgettable experience exploring Italy.</p>

<h2>Packages</h2>
<p>We offer an extensive range of holiday solutions to accommodate the needs of all our clients. From daily excursions in the most beautiful cities, to thorough tours of hidden villages and medieval towns to discover Italy's lesser-known sides.</p>

<ul>
  <li><a href="https://www.freecodecamp.org"  href="https://www.freecodecamp.org/learn" target="_blank" href="https://www.freecodecamp.org/learn">Group Travels</a></li>
  <li><a href="https://www.freecodecamp.org"  href="https://www.freecodecamp.org/learn" target="_blank">Private Tours</a></li>
</ul>

<h2>Top Itineraries</h2>

<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank" href="https://www.freecodecamp.org/learn">
<img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="The Center of Italy." href="https://www.freecodecamp.org/learn" target="_blank"/></a>
<figcaption>Rome and Center Italy</figcaption>
</figure>

<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank" href="https://www.freecodecamp.org/learn">
<img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="A beautiful Nature." href="https://www.freecodecamp.org/learn" target="_blank"/></a>
<figcaption>Nature and National Parks</figcaption>
</figure>

<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank" href="https://www.freecodecamp.org/learn">
<img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="An Island and South Italy" href="https://www.freecodecamp.org/learn" target="_blank"/></a>
<figcaption>South Italy and Islands</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/138.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page
https://www.freecodecamp.org/learn/full-stack-developer/lab-travel-agency-page/build-a-travel-agency-page

Hi @Haze and welcome to our community!

Each of your anchor (a) elements should contain one href attribute but you have multiple href attributes in each.
Also, your img elements should not contain an href or target attribute, only the a elements which enclose them.

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Travel Agency Page></title>
      <meta name="description" content="_blank"> 
      <meta charset="UTF-8"/>
  </head>

  <body>
    <h1>Discovery Italy</h1>
      <p>Art, folklore, food, nature, and more. Choose among our wide selection of guided tours and excursions, and live an unforgettable experience exploring Italy.</p>

    <h2>Packages</h2>
      <p>We offer an extensive range of holiday solutions to accommodate the needs of all our clients. From daily excursions in the most beautiful cities, to thorough tours of hidden villages and medieval towns to discover Italy's lesser-known sides.</p>

    <ul>
      <li><a href="https://www.freecodecamp.org" target="_blank">Group Travels</a></li>
      <li><a href="https://www.freecodecamp.org" target="_blank">Private Tours</a></li>
    </ul>

    <h2>Top Itineraries</h2>

  <ol>
    <li>
    <figure>
      <a href="https://www.freecodecamp.org/learn" target="_blank">
        <img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="collosseo in rome"/>
        </a>
        <figcaption>Visiting the colloseum in rome</figcaption>
    </figure>
    </li>

    <li>
    <figure>
      <a href="https://www.freecodecamp.org/learn" target="_blank">
        <img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="the alps"/>
        </a>
        <figcaption>Hiking in the Swiss alps</figcaption>
    </figure>
    </li>

    <li>
    <figure>
      <a href="https://www.freecodecamp.org/learn" target="_blank">
        <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="the sea"/>
        </a>
      <figcaption>Sailing to remote surfing spots</figcaption>
    </figure>
    </li>
  </ol>

  </body>
</html>

Still didn’t pass : 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.

Not all of your href attributes have this url.

Thank you how I’m not realize :frowning:

1 Like

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