Ciao come si fa a collegare una pagine ad un preciso termine di un'altra pagina?
Ciao come si fa a collegare una pagine ad un preciso termine di un'altra pagina?
:tongue:
Comunemente detti ancore, si può collegare un link ad un ben determinato tag di una pagina
Ad esempio:
pag1.htm
...
...
...
<P id="paragrafo1">bla bla bla...</P>
pag2.htm
...
...
link a paragrafo 1
Nel caso di una singola parola, l'approccio più corretto e' rinchiuderla in un tag SPAN.
ciao ciao !!
_______________
home : cristianolongo.altervista.org
e-mail : cristiano_longo@yahoo.it
Errore! Orribile errore!Originariamente inviato da cristiano_longo
Comunemente detti ancore, si può collegare un link ad un ben determinato tag di una pagina...
pag1.htm
...
...
...
<A name="paragrafo1">bla bla bla...</A>
pag2.htm
...
...
link a paragrafo 1
E' possibile linkare SOLO a tag A, e bisogna usare l'attributo name per dare il nome al punto di aggancio.
"Le uniche cose che sbagli sono quelle che non provi a fare."
Atipica
si può usare anche l'identificativo...Originariamente inviato da Shores
e bisogna usare l'attributo name per dare il nome al punto di aggancio.
<a id="xxx">
![]()
Da rfc2396 Sezione 4.1
E dalle specifiche html4.01When a URI reference is used to perform a retrieval action on the identified resource, the optional fragment identifier, separated from the URI by a crosshatch ("#") character, consists of additional reference information to be interpreted by the user agent after the retrieval action has been successfully completed.
http://www.w3.org/TR/html4/struct/li...ent_identifier
Quindi qualsiasi tag può essere indicato in un'ancora. Tuttavia il fragment identifier e' nomepagina#valore_attr_name se la destinazione e' un'A, nomepagina#valore_attr_id altrimenti.Destination anchors in HTML documents may be specified either by the A element (naming it with the name attribute), or by any other element (naming with the id attribute).
PS:Quella del name per l'A non la sapevo.
ciao ciao !!
_______________
home : cristianolongo.altervista.org
e-mail : cristiano_longo@yahoo.it