Requirement: Add a modern page anchor link in SharePoint Online.
How to Create Bookmarks on a modern page in SharePoint Online?
Page Anchors are links to another section on the same page. E.g., Jump to a section, Table of contents, etc., on long pages. This can be useful for long pages with a lot of content, as it allows users to easily navigate to the information they are interested in. In SharePoint Online modern pages, you can add page anchor links using the text web part. This process is simple and only requires a few steps You can create the page anchor by using any heading style in the Text web part.
Step 1: Create a Page, add content, and format the Sub-headings with Heading styles, such as H1, H2, or H3. Save and Publish the page.
Step 2: Open the same page in a new tab, edit the page, and add text for links to these sections – E.g., “Table of Contents” in the top section of the page.
Step 3: On the published page, Just mouse over the subheadings that are formatted with heading styles. You’ll find a link next to those subheadings, and just copy the link from the published page. (These links don’t appear on pages in edit mode!)
Step 4: Now, Select the text you want to link on the page in edit mode, and click on the “Hyperlink” button in the toolbar.
Step 5: Enter the link for the selected text you copied from the published page. Typically, it would look like: https://yourdomain.sharepoint.com/sitepages/page.aspx#section
That’s all! Now, clicking the links under “Table of Contents” will take users to the relevant sections of the page.
In conclusion, adding page anchor links to SharePoint Online modern pages is a straightforward process that can greatly improve the usability of your pages. By creating these links, you can allow users to quickly and easily navigate to specific sections of your pages, saving them time and effort as they search for the information they need. Whether you are working with a long page with many sections or simply want to provide an easy way for users to access specific information, page anchor links can be a valuable tool.