Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

Instruction 4 does not pass: You should have two elements within your element.

PS: I deleted the elements for this post because the links are very long. I only have the problem with instruction 4 not passing as stated above.

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8"/>
    <meta name="description" content="Explore the world with us, personalized travel experiences, expert planning, and unforgettable adventures await you.">
    <title>Travel Agency Page</title>
  </head>
  <body>
    <h1>Travel to Chicago with us!</h1>
    <p>Visit the best city in the world and sicover all the secrets that great Chicago has to offer you. You won't regret it!</p>
    <h2>Packages</h2>
      <p> We offer a varaiety of traval packages with airfare and hotel stays included for all type of travle styles.</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://www.freecodecamp.org/learn" target="_blank">
          <img src="" alt="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg>
        </a>
        <figcaption>Chicago River</figcaption>
      </figure>
      <figure>
        <a href="https://www.freecodecamp.org/learn" target="_blank">
          <img src="" alt="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg">
        </a>
        <figcaption>Chicago from the sky</figcaption>
      </figure>
      <figure>
        <a href="https://www.freecodecamp.org/learn" target="_blank">
          <img src="" alt="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg">
        </a>
        <figcaption>The Bean</figcaption>
      </figure>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

Hi,
step 4 passes on my end. Try resetting and add your code again ( your anchor elements well ).
Good luck!

Welcome to the forum :wave:

This is test 4 and it passes:

  1. You should have two meta elements within your head element.

Here are the tests

// running tests
28. Each of the a elements that are children of your figure elements should contain an image.
29. Each img element should have a valid src attribute.
30. Each img element should have an alt attribute with an appropriate value.
// tests completed

It seems like you haven’t done the images yet?

Hello. I removed the “src” attribute of the element for this post only. the links are too long.

Okay. if you’ve added them in your project, then steps 28 to 30 should also work. Step 4 already works.

Hello!
I still get this message:
// running tests 4. You should have two
// running tests 4. You should have two
meta elements within your head element.
// tests completed

Thank you!

It doesn’t really matter how long they are. Can’t really evaluate your code if it’s incomplete, but:

The url is in your alt tags when it should be in your src tags.

That’s not really making sense, sorry. I get the above result when I copy paste your code.

Please share your full, current code here in a comment.

Yup, there might be something else we are missing. Your full code needed for that.

I reset the course multiple times and now it passes. Thank you for your help :grinning_face: and sorry for the inconvenience.

1 Like