Answers for "html image properties"

4

img tag

<img src="the source image's url" alt="the image's description">
Posted by: Guest on May-04-2020
0

insert image by css

div.mydiv:after {
  content: url(image.jpg); /*url of your image*/
}

or

div.mydiv {
   width:100px; /*width of your image*/
   height:100px; /*height of your image*/
   background-image:url('image.file');
}
Posted by: Guest on September-11-2020

Browse Popular Code Answers by Language