I am stuck at Step 19 but could not figure out what I am doing wrong.
Step 19 : Both your list items should contain an anchor element.
(This is my first time posting in the forum and english is not my main language. please excuse me if I did anything wrong or broke a rule. feel free to correct me and thank you in advance!)
Here is my code:
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="description" content="discover all the beauties Turkey has to offer"/> <title>Travel Agency Page"</title>
</head>
<body>
<h1>Visit Turkey</h1>
<p>Art, folklore, food, nature, and more. Choose among our wide selection of guided tours and excursions, and live an unforgettable experience exploring Turkey.</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 Turkey's lesser-known sides.</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>
<ol>
<li>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank">
<img src="https://www.state.gov/wp-content/uploads/2023/07/shutterstock_1428304757v2.jpg" alt="castle view with turkish flag">
</a>
<figcaption>Ankara Kalesi</figcaption>
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank">
<img src="https://images.contentstack.io/v3/assets/blt06f605a34f1194ff/blt8661ca7093bfef1f/670d1d8178e93c195e12ae85/BCC-2023-EXPLORER-Istanbul-Fun-things-to-do-in-Istanbul-HEADER_MOBILE.jpg?format=webp&auto=avif&width=860&quality=80" alt="istanbul bogazi">
</a>
<figcaption>Ä°stanbul BoÄźazi</figcaption>
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank">
<img src="https://barakatur.com/wp-content/uploads/2020/08/bu-yazin-yildizi-ege-1590068553992.jpg" alt="house with flowers">
</a>
<figcaption>Ege Bölgesi</figcaption>
</figure>
</body>
</html>
Merhaba!
Sıkıntı yok, merak etme. İngilizcen super. ayrıca Türkçe de yazabilirsin, yani anlarız bazelerimiz bu güzel dili ve yardımcı da olabiliriz
İyi çalışmalar!
Hello I’m new to free code camp,
I’ve begin two days ago, and I’m enjoying the formation,it’s really cool to learn online and free
Video are very clear and exercises to
Here the bug issue
Certified Full Stack Developer Curriculum/Travel Agency/ 19. Both your list items should contain an anchor element
It says me that “19. Both your list items should contain an anchor element” but both of my items are contening anchor element. I check on the forum an 4days ago somebody had the same issue
Currently I’m stuck there…
Some people answer the post
you have more li elements that do not have an a inside, and the tests see those
these li do not have an a as direct descendant, the tests see also these (there were no isntructions to add more li so the tests weren’t written to expect more), if you want to pass you need to have these li have an a as children, or remove the ol and li items
that is fine. The issue, like the bug you reported, is because the test is checking that ALL li elements in the page have an a inside, so the li inside the ol make the test fail.
This can happen because the requirements are for only two li elements, the ol element is not requested, so the tests were not coded to accept it.
To pass the tests before the bug is resolved, remove the ol element, remove the li elements inside the ol element.