Hello im new to coding html and am stuck on question 26

The question states " 26. Each figure element should contain a figcaption element as its second child."
How can i fix this and am i doing anything wrong as a beginner

Happy Coding

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
     <meta name="description" content="What is there to do at the vatican?">
      <title>What are somethings that Vatican City offers.</title>
</head>
<body>
     <h1>Vatican City</h1>
      <p>The Vatican has so much to offer for example the amazing catholic churches.
       <h2>Packages</h2>
        <p>What packages do we offer, here we offer a Group Tour and a Personal Tour. WHich one you get depends on you and if you come with a partner or group  
          <ul>
            <li><a> Group Travels</a></li>
              <li><a> Private Tours</a></li>
               </ul>
                <h2>Top Itineraries</h2>
                 <figure><a>
                  <figure><a>
                   <figure><a>
</body>
</html>  

Welcome to the forum @Corbanic

The figure, paragraph, and anchor elements do not have closing tags.
There is no figcaption element in your code.

Happy coding

hello,yes thank you i realized that this is my updated code its still stuck on the same question

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
     <meta name="description" content="What is there to do at the vatican?">
      <title>What are somethings that Vatican City offers.</title>
</head>
<body>
     <h1>Vatican City</h1>
      <p>The Vatican has so much to offer for example the amazing catholic churches.
       <h2>Packages</h2>
        <p>What packages do we offer, here we offer a Group Tour and a Personal Tour. Which one you get depends on you and if you come with a partner or group  
          <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="An Amazing View!"><figcaption>Photo</figcaption>
                  </a>
                  </figure>
                  <figure>
                  <a href="https://www.freecodecamp.org/learn" target="_blank">
                  <img src"https://cdn.freecodecamp.org/curriculum/labs/alps.jpg"alt="An Amazing View!"><figcaption>Photo</figcaption>
                  </a>
                  </figure>
                  <figure>
                    <a href "https://www.freecodecamp.org/learn" target="_blank">
                      <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg"alt="An Amazing View"><figcaption>Photo</figcaption>
                      </a>



</body>
</html>
  1. Each figure element should contain a figcaption element as its second child.

You have the figcaption element nested in the anchor element.

Happy coding

1 Like

Thank you so much i finished the lab now! :slight_smile:

1 Like