Use of Comments Inside Inline style and script

Authors who are familiar with HTML commonly enclose the contents of inline style and script tags in comments in order to hide the contents of the tags from browsers which do not understand them. More information can be found here. <style type="text/css"> <!– body {background-color: blue; color: yellow;} –> </style> <script type="text/javascript"> <!– alert(‘hello’); //
Continue reading Use of Comments Inside Inline style and script

Cross domain workaround for @font-face and Firefox

All major browsers (even ie4+) now support the @font-face css property. Unfortunately there are still some kinks: Different browsers support different formats. You can specify multiple formats within a css file, and as long as you can provide .eot, .ttf, and .svg you’ll be okay Firefox does not allow cross-domain fonts by default. This means
Continue reading Cross domain workaround for @font-face and Firefox