750 grammes
Tous nos blogs cuisine Editer l'article Suivre ce blog Administration + Créer mon blog
chez fanchon

point d'ancrage

1 Décembre 2012 , Rédigé par Chezfanchon Publié dans #aide html

Retour à l'aide mémoire html

Pour définir et atteindre un point d'encrage:

Retour au top

(ref: http://www.echoecho.com/htmllinks08.htm)

To link to an anchor you need to:

  • Create a link pointing to the anchor
  • Create the anchor itself.

An anchor is created using the <a> tag.
If you want to create an anchor called chapter4, you simply add this line where you want the anchor to be:

<a name="chapter4"></a>

<p><a name="Italie" id="Italie"></a></p>


After doing this, you can make a link pointing to the anchor using the normal <a href> tag, like this:

Click <a href="#chapter4">here</a> to read chapter 4.

When linking to an anchor on a page you need to put a # in front of the anchor.

When you link to an anchor on the same page, simply enter

<a href="#YourAnchor">blabla</a>

When you link to anchors on external pages use this syntax:

<a href="http://www.yahoo.com#YahoosAnchor">blabla</a>

Anchors are generally used when you create pages with considerable amounts of text. You would typically make an index at the top of the page linking to the anchors that have been added to key places in the text that follows.

Partager cet article
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article