Turn-an-image-into-a-link

Tell us what’s happening:

In the first

element the anchor element and closing p element have a “.” between them. is this correct or an FCC error?

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

Your code so far


<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<img src="https://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 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15.

Challenge: Turn an Image into a Link

Link to the challenge:

No it is not an error. The . is not part of the a tag. The p tag is a sentence which ends with a full stop but within the sentence there is a link (enclosed in a tag)

I see. the link is underlined and the period would also underline in “cat photos” I feel lucky to have caught this. I don’t think this is taught.

We are saying that the . is just a period at the end of the sentence; the p is just text and the anchor is being added in for a link; which could be anywhere within the p "paragraph