Web Browser Rendering Behavior: img Inside Anchor Link No Longer Has Border by Default

By Xah Lee. Date:

As of , images inside link are not rendered with border now. So, you don't have to add CSS such as a.img {border:none}.

This is true for {Google Chrome, Firefox, Opera, Safari}, except Internet Explorer 9. LOL.

Test your browser.

Here's the code:

<a href="index.html"><img src="i/lilies-s.png" alt="lilies"></a>

Here's how it's rendered:

lilies
Liket it? Put $5 at patreon.

Or, Buy JavaScript in Depth

If you have a question, put $5 at patreon and message me.

Web Dev Tutorials

  1. HTML
  2. Visual CSS
  3. JS in Depth
  4. JS Reference
  5. DOM
  6. SVG
  7. Web Dev Blog