I have a href
link:
/agenda/#Testevent
Which in IE it goes to the corresponding <h4>
element but in Firefox it doesn't work.
I have used this named anchor:
<h4 name="#Testevent" id="#Testevent">
Any suggestions?
I have a href
link:
/agenda/#Testevent
Which in IE it goes to the corresponding <h4>
element but in Firefox it doesn't work.
I have used this named anchor:
<h4 name="#Testevent" id="#Testevent">
Any suggestions?
You can either do this:
<h4><a name="Testevent">Title</a></h4>
Or else you can also do this:
<h4 id="Testevent">Title</h4>
"Destination anchors in HTML documents may be specified either by the A element (naming it with the name attribute), or by any other element (naming with the id attribute)."
Source: w3.org: Links in HTML documents