How to add 'alt'?

How to add 'alt'?
0

#1

Tell us what’s happening:

Your code so far


<img src="https://bit.ly/fcc-relaxing-cat">
<alt> </alt>
<h2>CatPhotoApp</h2>
<main>
  
  
  <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/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/add-images-to-your-website


#2

I think you want to figure out how alt works? The instructions give you an example of how to add alternative text to an img element.


#3

I was not able to use ‘alt’ function but now I got it. Thank you for replying.


#4

‘Alt’ isn’t a function. It’s an HTML attribute.


#5

Sorry. Today is my first day and no CS background so understanding it is bit difficult. I will remember it that its an attribute. Thank you.


#6

No problem. Just want you to be aware because it may confuse you later down the line. Welcome coding and good luck on the challenges!


#7

Yeah you are right. I hope the journey will be exciting.


#8

I’m sure you will have an exciting time. Just remember to read-search-ask.


#9

Can you please tell me more about it? any link to read?


#10

About attributes? I don’t have any specific link. If you are wondering about how some function works, you can read documentation by googling "MDN " + the thing you’re looking up. MDN web docs provide the how to.

For now, just read through the instructions. If you are still confused, you can look through the documentation. And if still confused, ask on this forum or google search some more.


#11

Not about attribute, i was asking about read-search-ask


#12

here you go


#13

Thank you so much. I will use it from next time.


#14

happy coding , kill your time with coding