How to add specific style/script for IE in HTML?

There are times when we want a specific style or stylesheet or a javascript to be rendered only in IE and not other browsers such as FireFox. If this is so, then you can do so by adding following if and endif declarations in the HTML. Insert the style or stylesheet or javascript that needs to be rendered only by IE between the if and endif declarations in the HTML.

<!- -[if IE]>

Style or Stylesheet or JavaScript that should be rendered by Internet Explorer (IE) only will come here.

<![endif]- ->


Majority of the web page layout require side navigation column and the content column to expand vertically equal. This can be a challenge when we prefer to use div rather than tables for layout.

I explained one of the most useful hacks that create an appearance of two columnar div’s expanding vertically equal to each other. However, there are times when we actually want both the columns to have equal height. The solution can be min-height – a very helpful CSS property. However, it doesn’t work in IE. It works in FireFox. Continue reading Min-Height


W3C is preparing for the official release of XHTML 2.0. Right now, no browsers support it. So, we are not yet ready to implement it even if it’s released. Especially Internet Explorer (IE) needs to support XHTML 2.0 completely as it is still one of the most popular browser.

I read this article explaining XHTML 2.0. I found it very interesting and I am actually excited to work with it. I sure do hope that it will be soon. Continue reading XHTML 2.0

Validating HTML/XHTML

Validating HTML/XHTML implies checking HTML/XHTML file for conformance to W3C recommendations and standards. One can use W3C Markup Validation Service for free. I highly recommend using W3C Markup Validation Service to validate HTML and XHTML as it really helps us to eliminate code errors. However, in my opinion, validating HTML/XHTML is not as important as using this service to remove code errors.

Here are few tips that will help you to validate HTML/XHTML file when needed.

Continue reading Validating HTML/XHTML