March 26, 2021

Textual description of firstImageUrl

How to create a simple table of contents for Blogger

|
Last Updated: September 2024

This tutorial is about how to create a simple Table of Contents for Blogger sites.

I think a simple yet functional table of contents is suffice.

You don't need to have a fancy-looking table of content.

For me, I believe the function is more important than the form or design.

It has to serve its main purpose of a table of contents.

Welcome to another post from the DiGiztal Blogpot Blogger Tip series.  

How To Create Table Of Contents Blogger

Basically it tells your readers what this article or blog post is all about.

It breaks down the whole long content in sub-titles, so the readers can immediately go to any of the section which he can read right away.

Just take a closer look at the popular site Wikipedia.

You can see that Wikipedia table of contents is simple and useful.  

how to add table of contents in Blogger


RELATED TIP: How to add jump links in Blogger like Wikipedia


 Other established sites that use simple table of content include Yoast and AhrefsBlog.   

This is what I mean by a simple table of contents.

When you click any of the sub-titles, it will jump right to the part of the content which you want to read.

As an example, I have created a very simple table of contents as shown below.

Try click the list of sub-titles below to see how it works.

Table Of Contents:

What is a table of contents

The table of contents (TOC) is the roadmap to each section of the content.

It is a list of important sub-subtitles within a piece of text or video.

You can find it before the start of magazines, books, websites and even video clips.

With a click of your mouse, you go directly to the very chapter of the book, sub-content of a long blog post or a new song from song list as found in YouTube.

Why is a table of content important

The TOC improves the usability of a content.

Basically it provides the readers with a quick navigation to the content they are searching for.

It’s also easier for the readers or viewers to understand what the information you have in your article or video clip.

With this table list,  they can quickly hop over to sections of their interest immediately.

As for SEO (search engine optimization), it may help you to rank for your target keywords, particularly the long-tail words in the subheadings.

How to create a simple table of contents

There are two things you need to do:

Create The Content Sub-Titles

Add The Anchor Links (also called Jump Links or In-Page Links)


Now, let's go through it step-by-step how to set up the table of content for Blogger. 

How to create a simple table of contents for Blogger

STEP 1: Create The Content Sub-Titles

You already have your list of sub-titles for your table of contents in hand.

To add your table of content into your long blog post, this is what you do:

1. Go to the location on your blog post where you want to add the table of contents.

2. Click it.

3. Next go to the post editor toolbar.

4. If the toolbar does not show its full list of functions, click the row of three dots.

5. Then click either "Bulleted list" or "Numbered list".

As for my example above, I use the Bulleted list.

If you use Numbered list, it will look like this:

  1.  What Is A Table Of Contents
  2.  Why Is A Table Of Contents Is Important
  3.  How To Create A Simple Table Of Contents For Blogger


STEP 2: Add The Anchor Links

There are two areas where you have to add a simple line of code.

This part can a bit confusing.

Follow carefully, so you do not do it the other way round.

The FIRST CODE is for the subtitles at the Table of Contents list. 

This is where you click the hypertext and it will jump to specific content. 

The SECOND CODE is for the section of the content where you want the the link to jump to. 

FIRST CODE:

1. Click the "HTML view".

2. Locate the first sub-title of the table of content. 

3. This is the code to add between the sub-title.

As for my table of contents example above, the code for the anchor text looks like this:

<a href="#table of contents">What Is A Table Of Contents</a>

SECOND CODE:

Now you need to add the second code at the beginning of the part of the content which you want the link (with the first code) to jump to.

For my table of contents example above, the second code looks like this:

<div id="table of contents">What Is A Table Of Contents</div>

NOTE: The anchor text "table of contents" must match the code at the sub-title.

It means the anchor text of the First Code must be the same as the Second code (highlighted in yellow). See below:

First Code: <a href="#table of contents">

Second Code: <div id="table of contents">  

Furthermore the anchor names are case-sensitive, so be sure the capitalization used matches the anchor's name.

In other words, if you use a small capital for the first code, then the second code must also be of a small capital. 

After you have added the necessary code to the anchor text, click the "Publish" button.

That's all you need to do.

This is one easy way to create a simple workable table of contents for your Blogger site.