| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
|
What happened to <a name=blah>??
its been awhile since i've used anchors linking elements on the same page and i just learned that using <a name> has been deprecated. How do you link to a item in the same page now? with ID? so like: <a href="#blah">Link to Blah</a> <h2 id="blah">Blah</h2> appreciate the help |
|
|
|
|
|
#2 (permalink) | |
|
Just another web monkey
|
A quick google turned up: Quote:
|
|
|
|
|
#5 (permalink) |
|
i'm done, son
Join Date: Jan 2005
Posts: 12,262
|
There's no reason to use the anchor method any longer. The correct method uses less markup (if any) and creates an additional, useful styling hook. Often, there is no need to add an extra ID. For instance, if you want a "jump to top" link, you can often link it to an ID in your template. Like #content or something. In that case, it requires no extra markup. |
|
![]() |