0

How to add images into the HTML document?

I don't understand that lesson, so I would like you to explain kindly, please.

1st Jan 2017, 7:53 AM
Yan Pyay Aye
Yan Pyay Aye - avatar
4 ответов
+ 2
To add an image you would use the <img> tag, the 'src' attribute gives the location of the image be it a url from a website or the location from your local drive folder when developing a website and the 'alt' attribute gives it an description in case the image didn't load exmple: <img src="example.jpg" alt="image example"> if you want to visit this site and give it a read it will help http://www.w3schools.com/html/html_images.asp
1st Jan 2017, 8:19 AM
David Sinclair
David Sinclair - avatar
+ 2
Thank you very much for your answering. I thought no one answered me.
1st Jan 2017, 8:21 AM
Yan Pyay Aye
Yan Pyay Aye - avatar
+ 1
<IMG src=" image.jpg"/> for that code it will display an image of top left corner of the page.we can resize the image with widhth and hieght attributes
1st Jan 2017, 9:13 AM
harish tati
+ 1
<img src="photo.jpg" alt="photo 1"> It's must have in same folder .
2nd Jan 2017, 6:56 PM
Win Htut
Win Htut - avatar