Know When Alt Text Should be Left Blank

Know When Alt Text Should be Left Blank
0.0 0

#1

Tell us what’s happening:

I added an ‘alt’ attribute set to an empty string within the ‘img’ tag, yet nothing is working.

Your code so far


<h1>Deep Thoughts with Master Camper Cat</h1>
<article>
  <h2>Defeating your Foe: the Red Dot is Ours!</h2>
  <p>To Come...</p>
</article>

<img src="samuraiSwords.jpeg" alt:"" >

<article>
  <h2>Is Chuck Norris a Cat Person?</h2>
  <p>To Come...</p>
</article>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-accessibility/know-when-alt-text-should-be-left-blank


#2

instead of alt: use alt=


#3

I’m dumb. Thank you.


#4

no you’re not! It is perfectly normal mistake!