It seems that over the past couple of days, I've discovered a number of new things in Web Development Land that have been nothing short of entertaining. This really comes as a pleasant surprise, since there are many times where I feel that I've mastered so much of my skillset, and these discoveries give a real refreshing sense of intrigue and amusement.
Lose the protocol
The first thing I found was that you can reference images and files, and even create links without the http protocol. This may not come as a surprise to some, but it certainly did to me and some of my co-workers. This can be extremely useful to get around pesky Internet Explorer warnings when using mixed protocols, such as viewing a page in https that includes an image on an external server such as Amazon S3, that is being referenced as http. Instead, you can reference the image like this:
<img src="//my-server.com/images/my-image.png" alt="My Image" />
Basically, the reference will reuse the page's current protocol, similar to how using an absolute link will reuse the current domain name automatically. To check out more on this, see http://no-http.org/.
Styling a style tag... or, my head just exploded
Inspired by a SitePoint newsletter article about styling the html and body tags, my co-worker Chris and I decided we would see what other elements could be styled with CSS. So, after playing around for a few minutes, we came to the realization that in non-IE browsers, you can pretty much style anything. We were able to successfully style head, meta, and script tags, which finally led to the crossroads of the universe… styling a style tag. Is it practical? No. Is it shocking? Absolutely.
In conclusion, all I can really say is that I love this industry!
Reader comments