Reduce scrolling and improve user experience for your blog posts.
Anchors can be added to any text, including headings and paragraph text. For example, you might want to include a contents list at the start of a long article and allow readers to jump to the section that interests them.
Your HTML code should look like this:
Part 3: Layers
If you’re using the base block editor in WordPress, you can also set an anchor ID in the advanced settings for a block.
To link to an external page, select the text for your link and add a hyperlink as you normally would, but append # and the ID you added in the previous step.
To link within the same article, using the contents list mentioned previously, you don’t need the URL, just # and the anchor ID.
For example: #manually-create-anchor-links-wordpress