Skip to main content

HTML Guide

The “border” attribute is obsolete. Consider specifying “img { border: 0; }” in CSS instead.

<img> tags no longer accept a border attribute. This can be defined using CSS instead, for example:

<img src="..." alt="..." style="border:0;" />

Related W3C validator issues