This is great to use with ad server tracking pixels for example, or any other images:
Standard HTML code:
Relative protocol version:
A few important details:
- The browser will use the same protocol for the image call as the base URL where the tag is on, akin to a relative-path URL. This means e-mail clients and the sorts (like file explorers) will not be able to use this (as there is no base URL)
- Tested on IE6 + 7, FF2 + 3 and Safari 2 + 3.
- Syntax is part of the HTML spec since 1995, just not widely used (don’t know why)