How can I apply img tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I apply img tag

12th Nov 2019, 11:29 AM
D D Mishra
D D Mishra - avatar
2 Answers
12th Nov 2019, 11:29 AM
Saurabh Tiwari
Saurabh Tiwari - avatar
0
Smth. like this: <img src="snowfall.png" alt="Snowfall" height="100" width="100"> The <img> tag defines an image in an HTML page. The <img> tag has two required attributes: src and alt. Images are not technically inserted into an HTML page, images are linked to HTML pages. The <img> tag creates a holding space for the referenced image. To link an image to another document, simply nest the <img> tag inside <a> tags.
12th Nov 2019, 11:48 AM
Jagdtiger
Jagdtiger - avatar