Tarquin wrote:
Lee Daniel Crocker wrote:
<h2><a name="thisisasubhead">This is a subhead</a></h2>
<h2><a name="thisisasubhead"></a>This is a subhead</h2>
Don't include the name in the <a>, I think that will could it acquire hovering properties (underlining, etc) which we don't want
Which browsers do this? Is this more than just a guess? The reason that I ask is that W3C warns that
"User agents should be able to find anchors created by empty A elements, "but some fail to do so. -- http://www.w3.org/TR/1998/REC-html40-19980424/struct/links.html#h-12.2
So we could be between a rock and a hard space if both problems occur.
(OTOH, perhaps <h2>This is a subhead<a name="This_is_a_subhead"> </a></h2> will be a decent hack that works for everybody.)
And I do suggest recognising the spaces as we normally do in our URLs, to avoid confusing people by doing them differently.
-- Toby