I’m new to coding and I just CAN’T for the life of me get around this one. No matter how many ways I anchor the tag I just keep breaking everything. The img and src turn into white text and the image breaks. What am I supposed to do??
I’m already 23, should I just give up coding?
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<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>
<!-- User Editable Region -->
<a href="http://freecatphotoapp.com"</a> img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
<!-- User Editable Region -->
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0
Challenge: Learn HTML by Building a Cat Photo App - Step 15
Take a look at the code line above this in question to see how the text is surrounded with a tags and turned into a link. You should do the same thing with the img element (imagine that the mentioned text is the img element now):
Oh I figured it out I feel dumb asf… I kept doing anchors in the same way that a paragraph tag starts thinking the logic applied the same way. I got it… thank you
edit: in the example above I didn’t put the anchor on the bottom, I assumed it went in between or around the image tag rather than underneath
It’s okay, i had some trouble too.
The important part is to learn from it.
I’m already 23, should I just give up coding?
I’m 33 and just seriously starting to.
There are examples of people in their 40s (even older i’d say) learning to code, so…
As long as you are willing to learn, age doesn’t matter, imo.