Creating images as links with no borders

Updated: 04/26/2017 by Computer Hope

Any image that has a link has a border around the image to help indicate it is a link with older browsers. Adding border="0" to your IMG HTML tag will prevent that picture from having a border around the image.

<A HREF="https://www.computerhope.com"><IMG SRC="https://www.computerhope.com/logo-200.jpg" border="0" alt="Logo"></a>

However, adding border="0" to every image would not only be time consuming but also increase the file size and download time. If you don't want any of your images to have a border, create a CSS rule or CSS file that has the below code in it.

img { border-style: none; }

Example

Computer Hope Logo