通过编写猫咪相册应用学习 html - 步骤 16

告诉我们发生了什么:
在此详细描述你的问题。

你目前的代码

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <elementName>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
      <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>section
      </elementName>
    </main>
  </body>
</html>

你的浏览器信息:

用户代理是: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Edg/106.0.1370.52

挑战: 通过编写猫咪相册应用学习 HTML - 步骤 16

挑战的链接:

这不是一个HTML元素,你需要使它

<section> 

.此外,

<h2> 

标题需要位于这些

<section>

标记内。

2 Likes

你能把它作为解决方案吗?谢谢。 :woozy_face: :sweat_smile:

祝您未来编码好运!欢迎来到社区!

我尝试了你的解决方案,可以通过测试 :slightly_smiling_face: 谢谢你的详细解答!@teiResa