1<p><img src="image/example.jpg" alt="Example1" width="193" height="130"> (width:193px, height:130px)</p>
2
3<p><img src="image/example.jpg" alt="Example2" width="96" height="65"> (width:96px, height:65px)</p>
4
5<p><img src="image/example.jpg" alt="Example3" width="100%" height="130"> (width:100%, height:130px)</p>
6
1<img src="flowers.jpg" alt="flowers">
2
3//Always add the image type (jpg,png, etc) Adding alt text
4is also good coding practice :)
1The <img> tag will help you add image in html coding... it contains attributes:
2
31) src - usage <img src="">, it states the source of the image..
42) alt - usage <img src="" alt=""> it is the alternative text if you image failed to load...
5
6Thank you and HAPPY CODING.
7Feel free to give a upvote.. ^^
1<img src='/images/my_cool_image.jpg' alt='LOCAL IMAGE: My Cool Image!'>
2
3<img src='https://learn.coderslang.com/js-test-3.png' alt='REMOTE IMAGE: JavaScript Interview Question #3'>
4