通过编写猫咪相册应用学习 HTML - 步骤 64

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

你目前的代码

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</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>
      <section>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
        <ul>
          <li>cat nip</li>
          <li>laser pointers</li>
          <li>lasagna</li>
        </ul>
        <figure> 
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
          <figcaption>Cats <em>love</em> lasagna.</figcaption>  
        </figure>
        <h3>Top 3 things cats hate:</h3>
        <ol>
          <li>flea treatment</li>
          <li>thunder</li>
          <li>other cats</li>
        </ol>
        <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Five cats looking around a field.">
          <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
        </figure>
      </section>
      <section>
        <h2>Cat Form</h2>
        <form action="https://freecatphotoapp.com/submit-cat-photo">
          <fieldset>
            <legend>Is your cat an indoor or outdoor cat?</legend>
            <label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor" checked> Indoor</label>
            <label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label>
          </fieldset>
          <fieldset>
            <legend>What's your cat's personality?</legend>
            <input id="loving" type="checkbox" name="personality" value="loving" checked> <label for="loving">Loving</label>
            <input id="lazy" type="checkbox" name="personality" value="lazy"> <label for="lazy">Lazy</label>
            <input id="energetic" type="checkbox" name="personality" value="energetic"> <label for="energetic">Energetic</label>
          </fieldset>
          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <button type="submit">Submit</button>
        </form>
      </section>
    </main>
    <footer>
      <p>No Copyright<a>href="https://www.freecodecamp.org"></a></p>

<!-- User Editable Region -->

      <p>No Copyright<a>href="http://www.freeCodeCamp.org"></a></p>

<!-- User Editable Region -->

    </footer>
  </body>
</html>

你的浏览器信息:

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

Challenge: 通过编写猫咪相册应用学习 HTML - 步骤 64

挑战的链接:

<a> 标签的使用方法是 <a href="url">文本</a>,将文本变成链接。

题目要求“通过将文本 freeCodeCamp.org 包含在锚点(a )元素中,使其成为链接”,也指定了一个 url 作为 href 属性的值,你可以再试试看:)

另外,以后提问的时候在这里描述你的问题哦,以便大家更好地帮助你。

[quote=“Timicress, post:1, topic:602897”]

<p>No Copyright<a>href="https://www.freecodecamp.org"></a></p>

<!-- User Editable Region -->

    [quote="yaya123, post:3, topic:602897, full:true"]
[quote="Timicress, post:1, topic:602897"]

No Copyrighthref="https://www.freecodecamp.org">

  <p>No Copyright<a>href="http://www.freeCodeCamp.org"></a></p>
<p>no copyright<a href="https://www.freecodecamp.org"></a></p>只要改成這樣就沒問題囉~
</footer>



<!-- User Editable Region -->

    </footer>

[/quote]

@yaya123 不理解你发的是什么。如果你在做另一道题目时遇到问题,你需要单独创建一个帖子来提问。