Answers for "how to use image in html and css"

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
5

how to add an image in css

.element {
  background-image: url("imageFile.png");
}
Posted by: Guest on May-21-2020

Code answers related to "how to use image in html and css"

Browse Popular Code Answers by Language