+ 6

Hwo to used img tag

14th Jun 2018, 3:11 PM
Nikhil Ekhande
Nikhil Ekhande - avatar
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/
14th Jun 2018, 3:20 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 3
https://www.sololearn.com/learn/HTML/1030/?ref=app
15th Jun 2018, 11:13 AM
Geofrey Foya
Geofrey Foya - avatar
14th Jun 2018, 3:21 PM
Gopal Gautam
Gopal Gautam - avatar
+ 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.
15th Jun 2018, 5:37 AM
wenz
wenz - avatar
+ 1
<img src="imgae.jpg>
15th Jun 2018, 6:46 AM
Prakher Srivastava
Prakher Srivastava - avatar
+ 1
Thanks all
15th Jun 2018, 8:26 AM
Nikhil Ekhande
Nikhil Ekhande - avatar
0
alt attribute is also for screen readers, or browsers which don't display graphics.
16th Jun 2018, 3:48 AM
Shardis Wolfe