When one wants to refer to some part of a webpage with the \"http://example.com/#foo\" method, should one use
F
There's no semantic difference; the trend in the standards is toward the use of id rather than name. However, there are differences that may lead one to prefer name in some cases. The HTML 4.01 specification offers the following hints:
Use id or name? Authors should consider the following issues when deciding whether to use id or name for an anchor name: