Step 14 <a> should have an <element name>

I am guessing computer coding isn’t everyone’s cup of tea… :rofl:

  **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 <h3> target="_blank"  href="https://freecatphotoapp.com">cat photos
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></h3></a>></p>
  </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/102.0.5005.63 Safari/537.36 Edg/102.0.1245.33

Challenge: Step 14

Link to the challenge:

why have you added an h3?

anyway, a tag is made of an opening parenthesis <, an element name, then eventual attributes, then a closing parenthesis >
so, for example
<h2 id="title">

make sure all your opening tags are like that, you can’t put tags inside each other

then an element closing tag has an opening bracket <, a slash /, the element name, and then a closing bracket >
for example, </h2>

make sure all your tags are written like this

because to be honest, it helped with the <a anchor, then it doesn’t help at all and my code hint switches between name and too many anchors and seems I have to remove the which then moves away from ‘getting there’ :rofl:

Yeah the element name seems to be my issue, which is what I thought the <h 3 > was.

reset the step, you are changing code that you shouldn’t be changing

but to be clear, this

Your anchor (a ) element should have an opening tag. Opening tags have this syntax: <elementName> .

means it wants an opening tag for the anchor element
<h3> is the opening tag for an h3 element, not an a element

I’m still getting that and if I move the </ a my code has too many and I have to remove it then I’m back at the start. I hoped the h3 would have seperated the href= that I need to change the picture to a link.

 **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>
    <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>
  **Your browser information:**

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

Challenge: Step 14

Link to the challenge:

if you reset the step you may notice that only the line with the image is in the editable region

and this is still not a correct opening tag:

That’s what makes this so painfully hilarious, I don’t see how you can make the picture a link using ‘necessary tags’ without editing the href= code, it all comes back to element name, oh well.

Thank you ever so much for your effort and time. I may just look into paid courses, well if I am allowed to that is :sweat_smile:.

you can create a new anchor element

reset the step, and just add an anchor element around the image

<a <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
<a <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."> 

both give this response

hint

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.

this is not a valid opening tag, it’s missing something important

I’ve edited your post 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 (’).

which led me to the infamous h3 shenanigans :face_exhaling: :sweat_smile:

here I have listed what an opening tag is made of, you are missing something

Thanks.
another post had the answer :rofl: I tried the website links before h3, turns out I wouldn’t have just guessed the correct answer.

you have written this

if these are the instructions for an opening tag, what is the thing you are missing?

you are missing a thing to make it a whole tag
a single character

Turns out I was having a confusion with wording, I was supposed to use the website address not the link I had created in the first </p> I technically tried to 'hack' the original href link :sweat_smile:
‘use h`ttps://freecatphotoapp.com’
thanks for your help ilenia.