its not working. i cant get the strong tags and the alt tags to work at the same time.
My code:
<h2>CatPhotoApp</h2>
<img src=¨https://bit.ly/fcc-relaxing-cat¨ src alt= relaxing cat¨>
<alt=¨a relaxed cat¨/div>
<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 (X11; CrOS x86_64 10895.78.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.120 Safari/537.36.
As far as I can tell you don’t need a strong tag for this exercise, just to add the alt property to your image tag.
Can you re-post just your code? In order for us to see it you need to either paste into your reply, highlight the whole thing and hit Ctrl+Shift+C, highlight it and hit the </> button in the post box menu, or put it all between back tick marks (it should be the same keyboard button as the ~ symbol).
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 easier to read.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.
<alt> isn’t a tag, I would look at the instructions again and the example - alt is an attribute you use on a tag.
Also this:
<alt=¨a relaxed cat¨/div
Isn’t really even HTML. In HTML, the point is that you surround text with tags to tell the browser what a given piece of text should be identified as, like:
<p>Some text</p>
So there some text has an opening tag <p>, then a closing tag </p> , you surround the text with the tags.
Some things don’t have text inside, like images, so they only don’t have a closing tag, but the principle is exactly the same:
<img src="myImage.png" />
And you can pass extra information about whatever it is by using attributes
<p attribute="this is the value of the attribute">Some text</p>