+4 votes
66 views
in Tips & Tricks by (242k points)
reopened
How do you anchor an anchor in HTML?

1 Answer

+5 votes
by (1.6m points)
 
Best answer

Setting anchors in HTML
Put an anchor in HTML
Put an anchor in an older version of HTML

In order to refer to sub-sections on your own website, it makes sense to set a so-called anchor. We'll show you how..

image image

It is often useful to point out specific places in an HTML file so that your readers can access them by reference or anchors. An anchor forms the start and end point of a hyperlink with which you can create a jump label within an HTML document. In the following guide we will explain how to set an anchor in HTML. You can read here how to refer to an anchor.

Setting anchors in HTML

Put an anchor in HTML

  1. You have the beginning of a section of text that you want to refer to . To do this, you can place the anchor on the heading, for example. This is done with the command:

    <h3>Überschrift</h3>
  2. <h3> </h3> here means that it is the third heading, i.e. a heading of the third order. You can of course adjust this as you wish.
  3. For anchor name you then have to enter the name that you have chosen for your anchor.
  4. In the area between <h3 id = "anchor name"> and </h3> write the desired title of your headline .
  5. You can read here how to refer to an anchor.

Put an anchor in an older version of HTML

  1. You want to start a section of text , for example, on a heading reference . To do this, set an anchor with the command:

    <h3><a name="Ankername">Überschrift</a></h3>
  2. <h3> </h3> here means that it is the third heading, i.e. a heading of the third order. Of course, you can customize the heading type so it is exactly how you need it.
  3. For anchor name you then have to enter the name that you have chosen for your anchor.
  4. Then enter the name of your heading between <a name="Anchorername"> and </a> .
  5. You can read here how to refer to an anchor.

...