I understand that i tried this code : <img src <a target="_blank" href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" </a> <alt="A cute orange cat lying on its back."> but this time it told me: You should have an img element with an src value of https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg . You may have accidentally deleted it.
You stuck the anchor element inside of the opening tag of the image element. That breaks the syntax. You cannot put an element inside of the opening tag of another element.
Can you identify where the text ‘cat photos’ is in the first anchor element? Physically point to it on your screen to help your brain see it! Instead of writing an anchor element around the text ‘cat photos’, write an absolutely identical anchor element, but put the full image element, from < to > in place of the text ‘cat photos’.
i tried this code <a target="_blank" href="https://freecatphotoapp.com">img</a> src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back." but im still having no luck with it
hi Dan, in order to get timely help on the forum, you have to learn how to provide your code in the post. To do that you need to surround your code with three backticks (before and after the code). Like this:
all the code pasted here in the middle
You can also use the “Preformatted text” tool editing option which is an icon that looks like <\> and is about 3 icons to the right of the Bold icon on the forum post editor toolbar.
Please put all your code in your response if you need help. Not just one line.