So I anchored a img tag with itself's link and then I coded the following code in css
a{
border-color: white;
border-width: 2px;
border-radius: 50%;
border-style: solid;
}
and the result was weird as the borders were only in the bottom portion of the image and there were no borders in the upper, right and left portion. Also there was a small white oval near the upper-left corner of the image while if I code the same while using the image tag i.e.
img{
border-color: white;
border-width: 2px;
border-radius: 50%;
border-style: solid;
}
everything is perfect and the borders were perfect by the way this is the html img code
<a href="a45.jpg">
<img width= 800px src="a45.jpg" alt="alternative for image" >
</a>
I am no pro at code so please explain in easiest way possible enter image description here