I cant understand why the code doesnt work

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

   **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<p>View more <a href=''https://www.freecatphotoapp.com'' target=''_blank''>cat photos</a></p>
<img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">

 <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
 <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
 </main>
   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Hey there! HTML attributes generally come in name/value pairs. In this example, the attributes are your src and target attributes of the a tag.

The attribute values must be entered between one pair of quotation marks (double quotation marks are usually used in HTML), like name="value".

It appears that your values are in between two pairs of single quotes as in name=''value''. You can see that the quotation mark pair ends before your value is entered if you look at the way your code is highlighted.

If you replace the two pairs of single quotes with one pair of double quotes, I believe your code will work! Hope this helps and let me know if you’d like clarification on anything.

1 Like

thank you so much I am gonna be more careful about it :slight_smile:

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