Anchor tag issue in Internet Explorer

Posted by on December 12, 2010 in Do It Yourself

The HTML anchor tag doesn’t always work in Internet Explorer (IE) when it’s working fine with Firefox. Check the HTML code to see if the anchor tag has any content.

For example, you may be experiencing problems in IE if your anchor tag is written like of these two ways:

<a name=”test” /> OR <a name=”test”></a>

The quick fix is to simple add some like a space to the anchor tag and it will work:

<a name=”test”>&nbsp;</a>

Tiny URL for this post: http://tinyurl.com/29chsjs