|
Posted by Andy Dingley on 05/16/06 12:49
The One wrote:
> create bookmarks by using the A tag
> <a name="MyFirstBookmark"></a>
Use the id attribute instead of the name attribute. This can be applied
to any element, not just <a>. It's just a "more modern" way of working,
rather than <a name="" > being deprecated or wrong, but it's still
worth doing. It works everywhere that matters.
Also <a name="foo" ></a> isn't advised - Use <a name="foo>some text</a>
instead.
This complies with the spec and there have been browsers (Opera) that
didn't like the no-text version.
NB - The hash "#" character goes where you _use_ the bookmark, but
isn't in the bookmark itself (simple, but confuses a lot of people).
Navigation:
[Reply to this message]
|