告诉我们发生了什么:
- 每个 figure 元素应包含一个锚元素作为其第一个子元素。
- 每个 figure 元素应包含一个 figcaption 元素作为其第一个子元素。
- 作为 figure 元素子元素的每个 a 元素都应该包含一个图像。
检查提示的25和26矛盾,请问该怎么编写?
到目前为止你的代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="travels\group">
<title>Travel Agency Page</title>
</head>
<body>
<h1>Changchun city</h1>
<p>everyong,everytime,everywhere</p>
<h2>Packages</h2>
<p>By train</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" ><figcaption><img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="youchuan">
youchuan
</figcaption>
</a>
</figure>
<figure>
<figcaption>
<a href="https://www.freecodecamp.org/learn" target="_blank" >
youchuan
</figcaption>
<img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="youchuan">
</a>
</figure>
</body>
</html>
你的浏览器信息:
用户代理是: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 Edg/146.0.0.0
挑战信息:
Build a Travel Agency Page - 构建一个旅行社页面