F
F
fur_habr2019-05-17 12:59:01
Habr
fur_habr, 2019-05-17 12:59:01

How to insert an anchor when writing an article on habr?

Tell me how to use the tag correctly when creating an article on habr?
Here is what is written in the help:
A tag for specifying an anchor. The anchor itself looks like this: Anchor link looks like this: I'm making a table of contents and I want it to jump to a specific item when clicked. In the table of contents I do something like: Then I do And it doesn't work. I turn on the article view mode, click on the links - it does not jump anywhere. Tor Browser 8.0.9 (based on Mozilla Firefox 60.6.1esr) (64-bit). <anchor>Example</anchor>
<a href="#Example">Текст ссылки</a>
<a href="#Текст заголовка">Текст заголовка</a>
<h2><anchor>Текст заголовка</anchor></h2>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Bumburum, 2019-05-17
@fur_habr

Try like this:

<a href="#section123">Текст</a>
<anchor>section123</anchor><h3>Заголовок</h3>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question