ef jeden blog Asked:
I just found your web site and I need to ask you one question. I am writing in Polish about Formula 1 on Tumblr. I was trying to find the way of implementing html code which would allow my readers to go straight to a certain point of single post without scrolling whole text down. Is there a particular html code of some sort to create a link within same single post? What I’m thinking of is to add a table of content (index) at the beginning of each post with a list of chapters. The reason for that is, that after a new post was published often I’m editing it by adding some extra chapters and as it might come unnoticed by my readers I need to indicate that. So I decided to list added chapters directly underneath the title of the post. What I am trying to ask you here is if there is a way to make those listed newly added chapter’s titles clickable, so every reader, who already read the original text could simply click on newly added chapter and spare himself a trouble of scrolling down the page to find it?
Of course!, in the HTML world, this is known as anchor linking. It’s basically when you set a link to point to a certain part of the same page where the link is located, follow the steps below:
- Create an anchor (always use the html edition window when doing this), give the “name” parameter whatever title you want, and put all the text or title you want within the a tags, example below:
- Now, create that link you were talking about, pointing it to the anchor described above, example below
- Always remember when creating the link, to add a # to the href parameter.
<a name="chapter4">Chapter Title</a>
Click <a href="#chapter4">here</a> to read chapter 4.