Good day to all!! I want to build a Table of Contents with the name title to some sections parts in the same page. How can I do that? When I apply the anchor to the items in the table of contents, it just disappears. Thank you all!
The web site is not in the Internet yet, is still under construction. I’m building a web page for the Academic discipline History. In it there are some sections (kind of long section) so, I want it to have a table of contents, say: Definition Etymology Philosophy Methodology Historiography Historians I want every one of those headlines to link to the corresponding paragraph on the page.
In general, here's the best way to do what you want -
In the TOC at the top, you would have -
<ul id="toc">
<li><a href="#entry1">Entry1</a></li>
<li><a href="#entry2">Entry2</a></li>
...
</ul>
Then on the page below this list you would have -
<p id="entry1">some content</p>
...
<p id="entry2">some other content</p>
etc.
Clicking on a link in the TOC would jump you down on the page to the paragraph with that same ID.
Mr. Murray, good day! Exactly, that is what I was thinking about, thank you I ask; Can the
some content
be substituted with a
Can I just build the list with, say, write: entry1, line break, entry2, line break etc. or I should use: Format>List>unordered list Can I just build the list with, say, write: entry1, line break, entry2, line break etc. With Format>List>unordered list This is what I have:
Thank you!!
You could write it as below if you don't want to use an unordered list (but its generally thought that a menu is a list so its good practice to use a list tag)
<p><a href="#introduction">Introduction</a></p>
<p><a href="#etymology">Etymology</a></p>
<p><a href="#history">History Sociology: a debate</a></p>
<p><a href="#philosophy">Philosophy of History</a></p>
<p><a href="#methodology">Methodology</a></p>
<p><a href="#historiography">Historiography</a></p>
North America
Europe, Middle East and Africa
Asia Pacific