To create an anchor in HTML, you use the tag. This tag is often used to create hyperlinks, but it can also be used to create an anchor point in the document.
Here is an example of an anchor in HTML:
```
Section 1
```
This piece of code creates an anchor named “section1”. If you create a hyperlink elsewhere that refers to “#section1”, when the user clicks on that hyperlink, they will be taken to the location of this anchor in the document.
Here’s how you might create such a hyperlink:
```
Go to Section 1
```
By clicking the “Go to Section 1” hyperlink, you would be brought to the “Section 1” anchor point.
As of HTML5, it’s recommended to use the “id” attribute to create anchors and not the “name” attribute. Here’s how you’d do it:
```
And to link to it, use the same way:
```
Go to Section 1
```