Skip to main content


Showing posts from April, 2013

Anchor tag not working in IE

While working with Anchor tag, you may face a weird issue, where it's working fine with Firefox, Chrome, Safari and all other browsers but may not work in IE.
For example your anchor is: <aid="top"></a> or <aname="top"></a>
Although all browsers should be able to find an anchor tag like <aid="top"></a>, but IE can't find it if it's empty tag (i.e. no character content between the tags).
Fix: To fix the issue simply add non-breaking space between the tags
like this: <aid="top">&nbsp;</a> or <aname="top">&nbsp;</a>
And it’ll work fine then, for more details you can check W3C recommendation for anchors.