Using HTML code to jump from table of cont. to a textpassage(Wiki)?

David H Nebinger, modified 1 Year ago. New Member Posts: 11 Join Date: 3/31/24 Recent Posts

Hi dear community.

 

Does anybody know how i have to configure my wiki to be able of clicking for example on

1. Introduction (This is in the table of contents)

so that it jumps to the,,introduction section".

I would need a html code(NOT CREOLE), but i dont know how to solve this.

Can anybody help.

 

Thanks

 

Fal Al

Olaf Kock, modified 1 Year ago. New Member Post: 1 Join Date: 4/5/24 Recent Posts

To create clickable links in your wiki’s table of contents that jump to the corresponding sections, you can use HTML anchors. Here’s a simple example of how to set it up:

 

<!-- Table of Contents -->
<ul>
  <li><a href="#introduction">1. Introduction</a></li>
  <!-- Add more items as needed -->
</ul>

<!-- Content Sections -->
<h2 id="introduction">Introduction</h2>
<p>Content for the Introduction section goes here.</p>
<!-- Add more sections as needed -->
 

 

In this code:

The <a> tag creates a hyperlink that references an anchor named #introduction.
The href attribute in the <a> tag specifies the anchor link.
The <h2> tag for the Introduction section has an id attribute that matches the name of the anchor link.
When you click on “1. Introduction” in the table of contents, the browser will jump to the <h2> tag with the id="introduction".

 

Remember to replace “introduction” with the actual names of your sections, and ensure that the href value in the <a> tag matches the id value in the content section tags. This method will work for any HTML-based wiki system.

Jamie Sammons, modified 1 Year ago. New Member Posts: 11 Join Date: 3/31/24 Recent Posts

Dear Ryan. THANK YOU VERY MUCH. 

I will try it and tell you about it these days.

I will respond to you the next days.

 

Bye :-)