In the text of my p element, its asking turn the words cat photos into a link by adding opening and closing anchor (a ) tags around these words. Then set the href attribute to https://freecatphotoapp.com the full text is “See more cat photos in our gallery” but only cat photos should be turned into a link. any help would be appreciated Preformatted text
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<p>See more cat photos in our gallery.</p>
<a href="https://freecatphotoapp.com">link to cat pictures</a>
<!-- 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Hello and welcome to the forum.
Next time you create a post, remember to try describing your issue using your own words.
You have not edited your code.
In your p element, directly before the text cat photos add your a element wit your href with a value of https://freecatphotoapp.com
Then directly after the text cat photos add your a closing tag.
Ensure that you have only 1 space in your a element, that is the one in-between the text cat and photos
Do not add any additional text or elements.
The string link to cat pictures is surrounded by a <a></a>, where the opening <a> has an extra attribute named href between is borders. Do the same with the above text cat photos only.
The text cat photos should not be in your a element opening tag. Remove it. You should close the opening tag then add the text cat photos inbetween the opening and closing tags.
Example: <a href="link">text</a>