Creates a tabbed interface where content is organized into clickable tabs. Each tab contains related content that can be accessed by clicking the tab headers.
Wrap content in a container with class .tabs. Use headings (h2, h3) as tab titles. Content following each heading becomes tab content.
.tabs - Main container for tabbed interface.nav-left - Places navigation on the left side (default).nav-top - Places navigation at the top.nav-bottom - Places navigation at the bottom.mono-color - Uses single color scheme instead of pastel colors.no-title - Hides the heading text in tab content (heading still used for tab button)data-color="color" - Custom background color for individual tabsdata-font-color="color" - Custom text color for individual tabsThis is the content for the first tab.
You can include multiple paragraphs and other elements.
This is the content for the second tab.
This is the content for the third tab.
Even containers work within tabs.
This tab has a custom red background color.
This tab has a custom teal background color.
This tab has a custom blue background color.
Tabs text: Welcome to our course
This uses the text after "Tabs text:" as the tab label instead of the heading text.
Tabs text: Core Learning Material
The heading says "Main Content" but the tab shows "Core Learning Material".
Tabs text: Summary and Next Steps
This allows for shorter tab labels while keeping descriptive headings.
This tab set uses a single color scheme instead of the default pastel colors.
The mono-color class creates a more uniform appearance.
All tabs use the same background color with white borders for the selected tab.
This tab has a hidden title. The heading "Tab 1" won't be visible in the content area, but the tab button will still show "Tab 1".
This is useful when you want clean content without visible headings.
This tab has a visible title. The heading "Tab 2" will be shown in the content area.
Another tab with hidden title. Notice how the content flows without the heading being visible.
This tab shows the heading "Visible Title" in the content area.
This tab hides the heading "Hidden Title" but still creates a tab button with that text.
This tab shows the heading "Another Visible Title" in the content area.
.nav-top or .nav-bottom to control tab placementclass="no-title" to headings to hide them in content while keeping tab buttons