Learn HTML by Building a Cat Photo App - Step 10

i need help placing the anchor element

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p>
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app <a>relaxing-cat.jpg" alt="A cute orange cat lying on its back."
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 10

Link to the challenge:

Hey!
The challenge expects you to nest an a tag inside of a p tag. Nesting is when you make an element child of another element.

// here the button is nested inside of the div  //
<div>
    <button></button>
</div>

The text inside of the p tag should be “Click here to view more” and the text inside of the a tag needs to be “cat photos”. So the whole sentence becomes “Click here to view more cat photos.” where
“cat photos” is a clickable link with an href of https://freecatphotoapp.com.

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