Submitted : Using anchor links in SPIP

**SPIP**

# Article submitted

The article "**Using anchor links in SPIP**
(https://www.spip.net/ecrire/?exec=article&id_article=6590)" is submitted
for publication. on Thursday 11 June 2020.

* * *

## Using anchor links in SPIP

Thursday 11 June 2020 , by [jack](.././?page=auteur&id_auteur=593&)

This article is a small memo to use anchor links in SPIP articles.

Anchor links are invisible markers that can be placed in a text. They allow
direct access to a specific area in a page, which can be useful to refer
users to a paragraph in a very long page.

## Step 1: create the anchor link

Here is the SPIP shortcut to place an anchor link

1. [anchor\_link\_name<-]

That is:

* The anchor link must be **unique**. You can’t have multiple anchor
links named *"menu"* on the same page.
* The anchor link **must not contain** space and if possible avoid
accents and special characters.

For example on this paragraph "step 1", here is my code:

    [step-1<-]

    {{{Step 1: create the anchor link}}}

## Step 2: create a link towards this anchor link

Here is the SPIP shortcut to link to an anchor link in a page.

1. [->#anchor\_link\_name]

The **#** character is a reserved character that means anchor link.
It is automatically added to the address when the anchor link is clicked.

Here are some examples

**Crate the link towards this anchor link**

1. [Hypertext link title ->#anchor\_link\_name]

1. [Reviewing step 1->#step-1]

Which gives: Reviewing step 1

**Create link to anchor link to another SPIP item**

1. [Hyperlink title->spip\_article\_number#anchor\_link\_name]

1. [View Mathematical Filters->2465 #M athematical-filters]

Which gives: View Mathematical Filters
(https://www.spip.net/ecrire/?exec=article&id_article=2465#Mathematical-filters)

— Sent by SPIP (https://www.spip.net/)

rubon209-56821.jpg