Hi,
wenn ich das a-Element weglasse, funktioniert aber doch wahrscheinlich der Sprung auf "top" nicht mehr (kein Anker), oder irre ich mich da jetzt?
nein, dafür reicht für alle modernen Browser das id-Attribut in beliebigem Element.
Und Netscape 4.x-Nutzern bietest Du eh nur eine abgespeckte Version...
Siehe auch HTML-Standard:
The id attribute has several roles in HTML:
* As a style sheet selector.
* As a target anchor for hypertext links. <<<
* As a means to reference a particular element from a script.
* As the name of a declared OBJECT element.
* For general purpose processing by user agents (e.g. for identifying fields when extracting data from HTML pages into a database, translating HTML documents into other formats, etc.).
siehe http://www.w3.org/TR/html401/struct/global.html#adef-id
cu,
Andreas
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/