Stuck on Step 13 in html-css

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

I don’t understand how to add a target attribute to the to the anchor (a) element’s opening tag.

  **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>
    <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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15

Challenge: Step 13

Link to the challenge:

You have already added an href attribute to the anchor element:

<a href="https://freecatphotoapp.com">

The format is name="value". You would use this format for any other attribute you add to an element, including target. Just make sure to separate each name="value" with a space.

but why does this target element needs to come before href?

I don’t think it does. I just tried it with the target attribute after the href attribute and it passed for me.

1 Like

Yeah I managed to get passed the lesson but i don’t really get it. But ok.
I feel some lessons are explained fairly good and others you don’t have a clue and really got to google the solution

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