Abudu
April 30, 2023, 2:21pm
1
Tell us what’s happening:
Describe your issue in detail here.
Your code so far
See more cat photos in our gallery.
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
<!-- User Editable Region -->
<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/112.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 14
Link to the challenge:
I finding it difficult to add the _blank attribute
Can you show us how you tried to add it?
Abudu
April 30, 2023, 2:23pm
3
<p>See more <a_blank href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
Abudu
April 30, 2023, 2:24pm
4
<p>See more <a_blank href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
Abudu:
a_blan
You turned the a
element into an a_blank
element, but that’s not a real thing.
You instead need to add a target attribute with a value of _blank, like you have an href attribute or src attribute or alt attribute.
Abudu
April 30, 2023, 2:29pm
6
Alright,
I am trying that right away.
I won’t give up!
JeremyLT:
Abudu:
a_blan
You turned the a
element into an a_blank
element, but that’s not a real thing.
You instead need to add a target attribute with a value of _blank, like you have an href attribute or src attribute or alt attribute.
Abudu
April 30, 2023, 2:48pm
7
I am still finding it difficult
JeremyLT:
Abudu:
a_blan
You turned the a
element into an a_blank
element, but that’s not a real thing.
You instead need to add a target attribute with a value of _blank, like you have an href attribute or src attribute or alt attribute.
Please post your latest code
Abudu
April 30, 2023, 2:56pm
9
<p>See more <a href="https://freecatphotoapp.com"_blank>cat photos</a> in our gallery.</p>
Abudu
April 30, 2023, 2:59pm
10
<p>See more <a href="https://freecatphotoapp.com"_blank>cat photos</a> in our gallery.</p>
Abudu:
_blank
You have not written target
anywhere. Since you are asked to create a target
attribute, you will need to type target
somewhere.
href
attribute
src
attribute
Look at these two. How do the look different than what you wrote? You add a target
attribute like the href
or src
attribute.
Abudu
April 30, 2023, 3:40pm
12
<p>See more <a href="https://freecatphotoapp.com"<a _blank="https:freecatphotoapp.com">cat photos</a> in our gallery.</p>
what could be my mistake ?
You still have not written target
anywhere.
I would reset the code.
Then I would stop and review what an attribute is
Learn to Code — For Free
To write an attribute, you must write the attribute name, target
To set an attribute equal to a value, you must use an =
You should look look at the three examples of an attribute you have written. Every single one of your attributes has the format attribute="value"