image tag css code example
Example 1: img html
<img src="smiley.gif" alt="Smiley face" height="42" width="42">
Example 2: how to add an image in css
.element {
background-image: url("imageFile.png");
}
<img src="smiley.gif" alt="Smiley face" height="42" width="42">
.element {
background-image: url("imageFile.png");
}