Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

26,28,31,32 will not pass for me, I’ve moved things around tried to fit all the criteria, i really don’t understand why 32 isn’t checking, I’m new to this and trying to learn on my own so please be patient if it is a silly mistake its just I’m at the week long hiatus point due to this lol

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="Description" content="Welcome here we will discuss the pricing and perks of all destinations">
    <title>Just A Race agency</title>
    <h1>Explore Los Angeles</h1>
    <p> Welcome to Los Angeles! you've choses a wonderful place to come visit, today we will go over a few tourist locations and possible destinations for you on your vacation</p>
  </head>
  <body>
    <h2>Packages</h2>
    <p> We offer a range of packages all from the scenic side or maybe youe here for more amusement and theme parks, no matter we have it all. just select one of our packages below to get started.</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>
    </body>
     <h2>Top Itineraries</h2>
  <figure>
    <a target="_blank" href="https://www.freecodecamp.org/learn">
    <figcaption><img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="LA Theme Park" ><a/>Beautiful LA Theme Park</figcaption>
  </figure>
  <figure>
    <a target="_blank" href="https://www.freecodecamp.org/learn">    
   <figcaption><img src="https://cdn-dkhkf.nitrocdn.com/YbftafRmtHzBKqxBgMPGozTENCMaOeNW/assets/images/optimized/rev-33035ff/www.hotelportofino.com/wp-content/uploads/2019/12/roller-coaster-2-horz-1024x768.jpg" width="125%" alt="Disney LA Park" ></a>Theme Park #2</figcaption>
    </figure>
    <figure>
      <a target="_blank" href="https://www.freecodecamp.org/learn">
      <figcaption><img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="Beautiful La View" ></a>Beautiful downtown view</figcaption>    
      </figure>
  </html>

Your browser information:

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

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

Hi there :waving_hand:, welcome to the community!
It’s great to see you’re learning HTML on your own — keep it up!

Key Issues in Your Code & How to Fix Them:

  1. <h1> and <p> inside <head>* These should always be inside the <body> tag. The <head> is only for metadata like <title>, <meta>, and <link>..

  2. Incorrect <figcaption> Placement. You’re wrapping both the image and caption text inside the <figcaption>. That’s invalid.

Correct way:

  • Wrap only the <img> inside <a>.
  • Place <figcaption> after the closing </a>.
  1. Incorrectly Closed <a> Tags. You’re using <a/> which is incorrect.
For example:
<a href="..."><img ...><a/>
  • should be:
Example
<a href="..."><img ...></a>
  1. Missing target="_blank". For external links (like freeCodeCamp), always add target="_blank" to open the link in a new tab.

If you fix those issues, your code will be much cleaner and work as expected!

Thank You Very much, I ended up just rebuilding the whole thing fixing up those few issues and was finally able to get it to pass. I appreciate your assistance have a wonderful day!