HTML to CSS: Removing borders from linked images

Most graphical browsers add a border around a linked image, like this:

Valid CSS

Commonly authors (and often authoring tools by default) have removed this by doing border="0".

In CSS, simply use border: none. To remove the border from all images by default, use this:

:link img {
  border: none;
}

HTML to CSS home