Skip to main content

Posts

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: < a id ="top"></ a > or < a name ="top"></ a > Although all browsers should be able to find an anchor tag like < a id ="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: < a id ="top"> &nbsp; </ a > or < a name ="top"> &nbsp; </ a > And it’ll work fine then, for more details you can check W3C recommendation for anchors.