3 stylish table of contents designs created with HTML/CSS

A "table of contents" is often placed within articles on blogs. It is an element that greatly improves usability, as it not only serves as a summary of the content but also as an in-page link. This time, we have put together the design of such a table of contents using HTML and CSS. It supports ON/OFF of the opening/closing function, and it is possible to incorporate any of them just by copying and pasting.

Simple Toc

Gray background & border

Gray background & border

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Opening/Closing function
  • Title icon
  • Marker type

This is a table of contents with a very simple and time-honored design. By not changing the style of the tag, it is easy to intuitively convey that each heading is clickable.

Flat design & border

Flat design & border

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Opening/Closing function
  • Title icon
  • Marker type

This is a cute table of contents with a unified title background and border color. Please try setting your own site's theme color as the base color.

Flat design

Flat design

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Opening/Closing function
  • Title icon
  • Marker type