Skip to main content
100%

Table of Contents

✓ Published0🌍 Public
AAnnie Ulichney
Last edited Feb 12, 2021
Created on Feb 11, 2021
Forked from HTML Starter

This example shows a collapsible table of contents for a book’s chapters and sections. Clicking a chapter heading toggles the visibility of its nested subsections, with a plus or minus sign indicating the expanded state. The page uses jQuery’s `click` handler, `fadeToggle`, and DOM traversal to animate the hide-and-show behavior, while CSS controls the heading colors, margins, and dotted borders. The content is hardcoded in the HTML, and no external data source is loaded.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

ISC Licensed

Similar vizzes