Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

  1. Each figure element should contain a figcaption element as its second child.

  2. Each of the a elements that are children of your figure elements should contain an image.

  3. 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.

  4. Each a element should have a target attribute with the value of _blank. Don’t forget the links in the list items.

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
     <meta charset="utf-8">
     <title> Travel Agency Page </title>
     <meta name="description" content="travel agency">
     </head>
     <body>
  <h1> travel destinations </h1>
  <p>travel opportunities</p>
  <h2>Packages</h2>
  <p>the packages are as follows</p>
  <ul>
        <li><a>Group Travels</a></li>
        <li><a>Private Tours</a></li> 
        </ul>
        <h2> Top Itineraries</h2>
        <figure><a href="https://www.freecodecamp.org/learn"target="_blank">
           <img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="broken building"</a> <figcaption>a building damaged in WW1</figcaption>
        </figure>
        <figure> <a href="https://www.freecodecamp.org/learn" target="_blank">
           <img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="some dumb mountains"><figcaption> stupid mountain</figcaption> 
        </figure>
        <figure> <a href="https://www.freecodecamp.org/learn" target="_blank">
         <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="a lake or something"> <figcaption>i think its a lake</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

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

yeah sorry, it wouldnt let me add much more text in the prompt. i really have no clue what to do to fix the code. ive written it 3 times completely and have been doing minor changes to get this far. and for issues 28 and 29 i cant see anything wrong with them. in the past i had to copy paste and re run the code test to get it to go through but after doing that with both of them im also at a complete loss there. im looking for the answer to be honest. then i will re write the code a 4th and hopefully final time.

check your closing tags inside those figure elements

can you be more specific? are you referring to the one href? ive moved the <a and the closing (>) for it to multple places multiple times.

It looks like you have a few errors preventing you from passing.

Error no.1

Your img element has a syntax error at the end.

compare it with your other img elements to see what is missing. It is a small error but important.

Error no2

Anchor elements have open and closing tags. I don’t see that here though.

Error no3

Same issue
Anchor elements have open and closing tags. I don’t see that here though.

Error no 4

I don’t see href values here

Last error

I don’t see that here

When fix all of those things, then it passes

i did notice that, img element had the error at the end, that one i was playing with trying to figure it out. thank you for the help!