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"> </a>
or
<a name="top"> </a>
|
And it’ll
work fine then, for more details you can check W3C recommendation for anchors.
Comments
Post a Comment