<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more cat photos.</p>
<a href="https://freecatphotoapp.com">link to cat photos</a>
So I combined those two last lines and it doesn’t work. What am I doing wrong? Here is what I tried:
<p>Click here to view more <a href="https://freecatphotoapp.com">link to cat pictures</a>.</p>
This isn’t the text you were asked to use as the link text in the new anchor element. You have to use the text the step is asking for or the tests won’t be able to mark your code as correct.
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a href="https://freecatphotoapp.com">link to cat photos</a>.</p>
This still does not have the link text the instructions asked you to use
In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by adding opening and closing anchor (a) tags around these words.
In the previous step you turned the words link to cat pictures into a link by placing them between opening and closing anchor (a) tags. You can do the same to words inside of an element, such as a p element.
In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by adding opening and closing anchor (a) tags around these words.
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a href="https://freecatphotoapp.com">link to cat photos</a>.</p>
I can read the instruction. You don’t need to copy paste them at me.
Like I said, you did not use the correct anchor text.
In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by adding opening and closing anchor (a) tags around these words.
I’ve edited your code 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.
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a href="https://freecatphotoapp.com">link to cat photos</a>.</p>
hbar1st, I am not sure what I am doing wrong in the code where I attempted what I thought was the solution.
The lesson had the word “pictures” instead of photos. I don’t know if that was meant to trip us up or what.
This is what we were given:
<p>Click here to view more cat photos.</p>
<a href="https://freecatphotoapp.com">link to cat pictures</a>
This is the what it seems to me should be correct:
<p>Click here to view more <a href="https://freecatphotoapp.com">link to cat photos</a>.</p>
In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by adding opening and closing anchor (a) tags around these words.
The text isn’t trying to trip you up - it should be taken literally.
The first paragraph gives you some information
In the previous step you turned the words link to cat pictures into a link by placing them between opening and closing anchor (a) tags. You can do the same to words inside of an element, such as a p element.
The second paragraph says what you must do to pass the tests
In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by adding opening and closing anchor (a) tags around these words.
You did not “turn the words ‘cat photos’ into a link”. You deleted the words “cat photos” and replaced them with the words “link to cat photos”.
You must not use the phrase “link to cat photos”. The tests will only accept the phrase “cat photos”.