tags:

views:

39

answers:

2

Hey Guys, I can't seem ti understand why these trivial named anchors here

are not working in IE? FF, Safari and Chrome have no problem.

+1  A: 

they're not pointing to anything. you need to add id="anchorName" to your <h2>s.

Thomas Clayson
They're pointing to the 'old' method of this implementation. That is, a name attribute assigned to an anchor on the page, such as <a name="warranty"></a>
Alex
+1  A: 

I can't, but I can tell you that the name atribute on links is deprecated now. You should assign an id to an existing element to make this more semantic. That way you don't need to have any anchors that don't have a href attribute. And who knows, it might help the IE problem!

Alex
The name attribute is NOT deprecated. http://www.w3.org/TR/html401/struct/links.html#h-12.2
Rob
Not used anchors for a while good to know thanks guys!
woodscreative
Okay, the method is deprecated. Based on what the # does in an href attribute of an anchor, using name negates this.
Alex