Answers for "w3schools.com image tag"

17

html how to add an image

<img src="flowers.jpg" alt="flowers">

//Always add the image type (jpg,png, etc) Adding alt text
is also good coding practice :)
Posted by: Guest on March-04-2020
1

html image

PATH
<img src="img.jpg" >
<img src="images/img.jpg" >
<img src="/program/images/img.jpg" >

NAME
<img src="img.jpg" alt="Name in the site" >

SIZE
<img src="img.jpg" style="width: 300px; height: 150px" >
<img src="img.jpg" style="width: 30%; height: 20%" >
Posted by: Guest on August-03-2021

Browse Popular Code Answers by Language