Build a Cat Photo App - Step 11

Tell us what’s happening:

I kinda forgot a lot of stuff so it is hard to remember what an anchor element is

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Everyone loves cute cats online!</p>

<!-- User Editable Region -->

      <a href="https://freecatphotoapp.com"></a> <a href="https://www.freecodecamp.org">click here to go to freeCodeCamp.org</a>

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15

Challenge Information:

Build a Cat Photo App - Step 11
https://www.freecodecamp.org/learn/full-stack-developer/workshop-cat-photo-app/step-11

An anchor element is an HTML element used to tell the browser about a link in the web-page. It tells the browser which text is the link and what to do when someone clicks on that link (go to another page for example which is provided in the href attribute)

You can find out more by googling this topic “What is an HTML anchor element” or you can read more here:

其实锚点很好理解 就是一个链接跳转啊。就像是一个电话号码,你一拨打他就跳转了。就像是一个短信或者消息中包含了一个YouTube的分享链接,本质就是一个锚点

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.