Here’s a quick tip for using a different way to link to content within HTML code. Essentially you are creating an absolute URL without protocol.
While it’s traditional to structure URLs in links with the inclusion of http:// or https://, it is no longer completely necessary.
Instead, today you can simply use the //
(Hippies' Note: If you enjoy reading our articles, you'll love our newsletter. Receive updates directly to your inbox. Subscribe now!)
Some of the benefits include:
- Less typing required
- Less errors for website visitors
- Slightly smaller files since you are omitting 5 characters from every link URL
Disadvantages: IE6, IE7 and IE8
As with all websites it’s important to be cross browser compatible. However, if you are going to get an error it will (most likely) be caused within Internet Explorer. This tip also has issues pertaining to three Internet Explorer versions; IE6, IE7, and IE8.
- IE6 has an edge error. This is slightly complicated to explain, but Paul Irish does it well here.
- IE7 and IE8 will download the stylesheet twice if you use a <link> element or @import.
Do you still use Internet Explorer for browsing the web? If so, which version?Subscribe to our mailing list