add tip for alt attribute for the add-images-to-your-website challenge (#16197)
This commit is contained in:
committed by
mrugesh mohapatra
parent
43abd79788
commit
461cd88363
@ -619,6 +619,7 @@
|
||||
"<code><img src=\"https://www.your-image-source.com/your-image.jpg\"></code>",
|
||||
"Note that in most cases, <code>img</code> elements are self-closing.",
|
||||
"All <code>img</code> elements <strong>must</strong> have an <code>alt</code> attribute. The text inside an <code>alt</code> attribute is used for screen readers to improve accessibility and is displayed if the image fails to load.",
|
||||
"Ideally the <code>alt</code> attribute should not contain special chars unless needed.",
|
||||
"Let's add an <code>alt</code> attribute to our <code>img</code> example above:",
|
||||
"<code><img src=\"https://www.your-image-source.com/your-image.jpg\" alt=\"Author standing on a beach with two thumbs up.\"></code>",
|
||||
"<hr>",
|
||||
@ -2242,4 +2243,4 @@
|
||||
"ru": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user