gem
September 11, 2022, 2:16pm
1
I’ve read all the other forum posts for step 14 but still can’t figure out what I’m doing wrong. Do I keep target=_“blank” ?
**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 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> /a> alt="A cute orange cat lying on its back."
</main>
</body>
</html>
**Your browser information:**
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14909.132.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 14
Link to the challenge:
This is not valid html. You need to leave the img element unchanged. You put a full opening anchor tag before the original img element and a full closing anchor tag after the unchanged img element.
gem
September 11, 2022, 2:40pm
3
Of deleted the changed i made to the img element, but now what?
<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."
This is not the original img element.
This is not a complete opening anchor tag, it is missing the >
Also, you have no closing anchor tag
gem
September 11, 2022, 4:00pm
7
Im clikcing the image in my preview and it’s telling me it works so how come I’m being told something is still wrong?
<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>
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
You still changed this img element. You deleted the >
You must not change a single character of the img element. Removing the > breaks the element
gem
September 11, 2022, 4:05pm
10
I see, sorry about that I’ll remember for next time
It’s easy to mix up. Mixing things up is part of learning
gem
September 11, 2022, 4:06pm
12
Oh! I finally got it thank you so much
system
Closed
March 13, 2023, 4:07am
13
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.