<h2>CatPhotoApp</h2>
<main>
<img src="[http://cdn.freecodecamp.org/curriculm/cat-photo-app/relaxing-cat.jpg](http://cdn.freecodecamp.org/curriculm/cat-photo-app/relaxing-cat.jpg)" alt="A cat photo">
<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>
I’ve edited your post 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.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
This is the third time I asked you to format your code. This is the third time I’ve told you that your code should not have any brackets []
or parentheses ()
in the url for the src attribute.
Can you see these messages? Are you ignoring these messages? Please respond to these posts so we know that you can read them.
You should only write the url once. You should not have any brackets []
or parentheses ()
in the url for the src attribute.
I do not know why the code has brackets because i have not used brackets or parentheses. I write the code, copy and paste it in my reply.
I would assume that something is trying to format your unformatted code. It would be easiest if you log into the forum and post your code, using the formatting instructions above.
the src attribute must refer the the image location. For instance if I have an image that I want to include on my webpage, you must refer the location where it is stored either on your computer or somewhere on the internet.
for example,
<img src='https://images.pexels.com/photos/11163079/pexels-photo-11163079.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500' alt="some alternative text">
The image is link here is
If you copy it and paste it in your web browser, you will find the image
I didn’t realize free code camp will display the actual image.
Here’s the image:
{https://images.pexels.com/photos/11163079/pexels-photo-11163079.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500}
The leading and closing parenthesis are to prevent fcc from displaying the image
<h2>CatPhotoApp</h2>
<main>
<img src="[http://cdn.freecodecamp.org/curriculm/cat-photo-app/relaxing-cat.jpg](http://cdn.freecodecamp.org/curriculm/cat-photo-app/relaxing-cat.jpg)" alt="A cat photo">
<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
This is how i wrote the img and the alt, and it keeps telling me that I need to set the img to point to the kitten image. What am I
doing wrong?
Oh look. You posted unformatted code again and it was changed to include []
and ()
yet again. If only someone could have seen this coming and told you how to avoid this problem.
Without you correctly posting your code, it is hard for us to know what’s happening.
It does look like your url might be wrong
https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.