Hi - I'm confused. Some time back sitepoint forums told me to use this to create a target:
to replace the old <a name="target"></a>
But now this page:
says the format should be:
<a id="tips">Useful Tips Section</a>
this is the original feedback I received in forum:
<a name="recipe"></a> - not good to use, but if you do, it must be in a content-containing element, ie a <td> or <th>. If the anchor isn't legally placed inside a table cell, it bobs up to sit on top of the table.
It's much better to put id="recipe" on the element you want to jump to, rather than messing around with named anchors.
The original problem is that browsers did not to go to the text inside a table cell when I was using <a name="recipe">. Instead it went to the top of the table.
Which is better to use to create a bookmark anywhere in doc (both inside and outside table cells):
or <a id="target"></a>
I never enclose text within the bookmark, the way W3schools does. I always place the target immediately before the text that I want to target.
I'm not sure if it's called bookmark or target. But you reference it like this: