I have been stuck on Step 12 forever and I DO NOT know what to do. My preview shows my code as a link with only “cat photos” as the link. Not sure what I am doing wrong for them not to accept it. PLEASE HELP!!!
My current code: I have also tried putting it all on one line…nothing works!
Hi, and welcome to the free code camp community!
The goal is to make the text “cat photos” clickable. You don’t need to add another cat photos statement. Basically, just use the original sentence “Click here to view more cat photos”. Put the opening a tag with href attribute before the text cat photos. Then, put the closing a tag after the text cat photos (at the end of the sentence).
Thank you! I appreciate your assistance. I did what you described and it still isnot working. This is my code after your suggestions: <p> <a href="https://freecatphotoapp.com <a href="cat photos"> Click here for more cat photos </a> </p>
hi there, I wrote a post to help people with step 12 but first you must understand the objective of this exercise
If you click the reset button (which looks like an arrow turning), you will be shown the original code which includes this paragraph element <p>Click here to view more cat photos.</p>
The objective is to turn the last two words of the paragraph into a link.
That means that the last two words will become clickable when you view them in the preview pane. Nothing else will change.
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.
typ<p>Click here to view more cat photos.</p>
<a href="https://freecatphotoapp.com">link to cat pictures</a>
This is the original, after I reset the code.
I understand the lesson is to create a hyperlink for the text cat photos, that will take the user to the website described in the original code, however, the top sentence says cat photos, and I am adding my opening and closing anchor text to the front of cat photos and the end of cat photos, after the period.
Another reply stated I should use only 1 opening and 1 closing anchor element. So I removed the opening anchor element from the bottom line and the end of the bottom sentence and moved it to the cat photos, because it states I needed to nest in p element (an error message), which I see is only the first line.
It also states that a links text MUST BE PLACED BETWEEN THE OPENING AND CLOSING TAGS of an anchor element, hence the reason I put it at the beginning and end of the text “cat photos”.
I just do not know why or what I am doing wrong.
This is my updated code:
<p>Click here to view more <a href="cat photos </a>.</p>