{"id":20678,"date":"2013-03-20T09:04:45","date_gmt":"2013-03-20T16:04:45","guid":{"rendered":"http:\/\/css-tricks.com\/?p=20678"},"modified":"2013-03-20T11:14:40","modified_gmt":"2013-03-20T18:14:40","slug":"automatic-table-of-contents","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/automatic-table-of-contents\/","title":{"rendered":"Automatic Table of Contents"},"content":{"rendered":"

Any long page of content with distinct and well marked up content can benefit from a table to contents. A table of contents provides a quick way to jump down the page to the desired section. Of course you can create a table of contents manually, but it may be smart to build it dynamically on-the-fly with JavaScript. This is true for several reasons:<\/p>\n