Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
Describe your issue in detail here.

  **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 <a href>="https://freecatphotoapp.com"<cat photos</a>.</p>
    <a href="https://freecatphotoapp.com">cat photos</a>
    <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>

This is it

  **Your browser information:**

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

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

Link to the challenge:

thanks for posting your topic here as requested.
I noticed that your formatting is not as expected.
For eg. What does the starting tag of the anchor element look like normally?
<a href="a link">
but notice the way you wrote the starting tag is:
<a href>=

you have to really pay attention to the angled brackets and where they go
also the same for where you put the equal sign, really pay attention to where it goes in the sample code

A post was merged into an existing topic: Learn HTML by Building a Cat Photo App - Step 12

Ok thank you, I’ll try it again

I’ve corrected it, but there’s still error in it.

  **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 <a href="https://freecatphotoapp.com"<cat photos</a>.</p>
    <a href="https://freecatphotoapp.com">cat photos</a>
    <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>

The site that was showing in the preview is not there again.

  **Your browser information:**

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

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

Link to the challenge:

[/quote]

very good, you’re getting closer.
Again, looking carefully at the angled brackets, do you see a problem with the way you closed the <a href=... part?
Normally, the anchor tag looks like this: (notice the right side)
<a href="some link">
and here’s yours
<a href="https://freecatphotoapp.com"<

I’ve got it all good, thanks

1 Like

Sorry but I can’t add a target attribute?

a target attribute has a format similar to the href attribute

if you still need help, please open a new topic for it (we want to keep each topic about a specific step to make it easier for people to search for help)

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