How to show a image in html page?

Also you can show images using css background property...

..
<div class="bgimage">
.. ..
</div>
..

<style>
.bgimage {
width: 100%;
height:200px;
background: url('IMAGE-URL-HERE') #000 no-repeat;
}

</style>
 
<img src="foldername/img.jpg">Flower/imgname</img>
HTML tag <img> is used to define the image
src define the URL of the image
 
image show in html tag give n below:
<img src="pic_mountain.jpg" alt="Mountain View" style="width:304px;height:228px;">
 
To show an image on an HTML page, you can use the <img> tag and specify the image path in the src attribute. For example, <img src="image.jpg" alt="Description"> will display the image in the browser. You can also style it with CSS or replace the source with a processed version, such as an image generated using ai image to sketch, to make the visuals more creative.
 
Back
Top