How to work with Image Border in HTML

In this article we will discuss about how to put the border in the img Tag in HTML.
  • 2172

We can make the border of the image as well in HTML. It depends on the requirement of our application and we can set the borders width as well.

It is one of the essential attribute of image tag. In our example we will discussing how we can increase or decrease the width of the border in the image in HTML.

HTML Code:



    <img src="Sunset.jpg" border="20%" width="10%" height="10%"></img><br>



    <img src="Sunset.jpg" border="10%" width="10%" height="10%"></img><br>



    <img src="Sunset.jpg" border="5%" width="10%" height="10%"></img>





Ask Your Question 
Got a programming related question? You may want to post your question here


More Articles

© 2020 DotNetHeaven. All rights reserved.