What should one use when using the "http://example.com/#foo" approach to refer to a specific section of a website
<h1><a name="foo"/>Foo Title</h1>
or
<h1 id="foo">Foo Title</h1>
They both function, but are they equivalent or are there semantic differences between them?