Step 13 says “Add a target attribute of _blank to your a element.” There is no instruction or description or example. The previous step did not mention target or _blank. How are we to know what to do without being taught it first?
**Your code so far**
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a href="https://freecatphotoapp.com">cat photos<target>_blank</target></a>.</p>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
**Your browser information:**
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
Challenge: Step 13
Link to the challenge:
You have been asked to add attributes to elements before. You add it like a
So we just type target within the existing text or create a new section?
Review of what the word attribute means:
You add the
target attribute to the anchor element in the exact same way as you added the
src attribute to the image element.
Is there a course that is meant to come before this that teaches basics such as terminology?
Nope. We’re expecting you to be read and use information from previous steps. For example, step 8 and 9both talk about attributes, with step 8 giving an explanation.
Previous steps did not mention target attributes. Are the examples and teaching section for each step gone with the new version or do I have something set incorrectly?
An attribute is an attribute. All attributes work the same way, as was explained in step 8. I linked step 8 so you could read what an attribute is.
This version of the course has intentionally less of ‘copy and change one word in the example without any thought’.
So i type a new _bank somewhere within the existing href attribute?
Not ‘somewhere’. You need to write it like the other 3 attrs you have written. Can you point out where the
href attribute is on the anchor tag?
Personally I need to see an example to learn as I’m sure many others do. Just an insight. Though I’m sure there are people who don’t really want to learn and do like you said.
Just like the three examples of an attribute that you have written.
After the a. It is saying to make a new target attribute so my question is do I add a new
<a> or add it to a previous one. Do i erase the link and replace with _blank?
Ok so I create a new
<a target="_blank"> ? Does it matter where I put it as long as it in within the p? I assume before the
I tried adding it to the existing a like this and it says it is incorrect:
<p>Click here to view more <a target href="_blank""https://freecatphotoapp.com">cat photos</a>.</p>
The attribute is after the character, but inside of the <> for the tag. That’s where your target attribute goes.
The instructions don’t say anything about deleting other attributes, so when you don’t see instructions to delete things, you should not go deleting things. You just need to add text to the tag.
The instructions also don’t say to create a new tag. They say to add an attribute to the current anchor tag.
You need to add the target attribute to the existing one
Before or after, it doesn’t really matter. You just need to put the attribute in the
a element opening tag, between the <> and after the a.
Add this to your a element target="
That is a target attribute
I am 100% with you on this, there is very little instruction on how to do these steps and you’re just supposed to know lol.
Its definitely not obvious but i guess that’s the point to make you learn rather than just copy… the answer is simple though you just add target=“_blank” between the <a and the href… <a target=“_blank” href