Linking internally

Posted 18 days, 15 hours ago by Oatmealer_Frog

Hi! I'm working on my TOS Page and would love to get some help on how I can link one part to another part of the page.

To elaborate, I'm making the table of contents, and I want to be able to click on the table of contents where I want to go, but have it be on the same page ^^

Avistella

There are two ways:

  1. Insert <a name="NAMEOFSECTIONHERE"></a> before the section you want to be able to jump to. (This method is deprecated, but I have Terms of Service Template which uses this method that you can try using to reference.)
  2. Insert an id to the "first" element for the section you want to jump to. For example, instead of <h2>Header 3</h2>, you would put:
    <h2 id="NAMEOFSECTIONHERE">Header 3</h2>

Then for your link, use <a href="#NAMEOFSECTIONHERE">Text Here</a>
Make sure you keep the sign, and keep in mind that it's case-sensitive.

Oatmealer_Frog

How does one make a section? I'm so sorry for all of the questions, but I'd love some help as I'm new! Avistella