Computer Science, asked by debangshu58, 1 year ago

html program using img src.

Answers

Answered by pankajkumar17pm
0
  • Use the HTML <img> element to define an image
  • Use the HTML src attribute to define the URL of the image
  • Use the HTML alt attribute to define an alternate text for an image, if it cannot be displayed
  • Use the HTML width and height attributes to define the size of the image
  • Use the CSS width and height properties to define the size of the image (alternatively)
  • Use the CSS float property to let the image float
  • Use the HTML <map> element to define an image-map
  • Use the HTML <area> element to define the clickable areas in the image-map
  • Use the HTML <img>'s element usemap attribute to point to an image-map
  • Use the HTML <picture> element to show different images for different devices

<!DOCTYPE html>


<html>


<head>


<style>


img {  

   width: 100%;  

}


</style>


</head>


<body>



<img src="C:\Users\Public\Pictures\Sample Pictures\Hydrangeas" alt="Hydrangeas Flower" width="128" height="128">


<img src="C:\Users\Public\Pictures\Sample Pictures\Hydrangeas" alt="Hydrangeas Flower" style="width:128px;height:128px;">



</body>


</html>

Similar questions