+ 6
Hwo to used img tag
7 Answers
+ 4
I think that you need to use this tag exactly like this
<img src = 'Your image' alt = 'Optionally' style = 'Optionally' /> Also this tag is described in the SoloLearn tutorial, good luck!
https://www.sololearn.com/learn/HTML/1030/
+ 3
https://www.sololearn.com/learn/HTML/1030/?ref=app
+ 1
- classic: <img src='picurl' alt='txt'>
- use srcset attribute for responsive images: <img srcset='hi-res-pic 2x' src='lo-res-pic' alt='txt'>
- nest img inside <picture> for art direction or <figure> in articles.
=> there are many options. there is no consensus among browsers how to deal with images. check out the many variants big media outlets use to display their images.
+ 1
<img src="imgae.jpg>
+ 1
Thanks all
0
alt attribute is also for screen readers, or browsers which don't display graphics.