---
title: "Insert Tabs"
id: "insert-tabs"
project: "ClickHelp User Manual"
url: "https://docs.clickhelp.com/articles/clickhelp-user-manual/insert-tabs"
updated: 2026-11-16T06:42:35Z
---

# Insert Tabs

Documentation index for AI tools: [/llms.txt](/llms.txt)
 
You can use **Tabs** in documentation to divide content into meaningful subsections and shorten a topic's length. One of the most widely used examples of using tabs is providing a code snippet in different programming languages in a handy manner.

* [Insert Tabbed Content](/articles/clickhelp-user-manual/insert-tabs/a/h2__1912056990)
* [Nested Tabs](/articles/clickhelp-user-manual/insert-tabs/a/h2__1541691475)
* [Tabs Styling](/articles/clickhelp-user-manual/insert-tabs/a/h2__1403357689)
* [Conditional Tabs](/articles/clickhelp-user-manual/insert-tabs/a/h2__409243814)
* [Code Samples in Multiple Programming Languages](/articles/clickhelp-user-manual/insert-tabs/a/h2__1119587553)
* [Tabs in Printed Formats](/articles/clickhelp-user-manual/insert-tabs/a/h2_1399769287)

## Insert Tabbed Content

Here's how you can create tabs:

1. Open the **Insert** tab of the ribbon and look for the **Boxes** group
2. There, click the Tabs button. Configuration popup will open:
![The Insert Tabs dialog](/resources/Storage/clickhelp-user-manual/Screenshots/insert-tabs/insert-tabs-popup.png)
3. Specify the number of tabs you want to insert (the number is limited to **100**) and hit **OK**.

After you've inserted the tabs, they will look like a table in the editing mode:
![The Tabs in the editing mode](/resources/Storage/clickhelp-user-manual/Screenshots/insert-tabs/tabs-edit-view.png)
In the first column, you can specify the caption for each tab, and in the second column — the content of the corresponding tab.

Once you unlock the topic, the tabs will be displayed as actual tabbed element — the same way they will be displayed for the readers:

![The Tabs in the View mode](/resources/Storage/clickhelp-user-manual/Screenshots/insert-tabs/tabs-view-view.png)

## Nested Tabs 

Since tabs are represented by a table in the editing mode, you can put pretty much any content into the Tab Caption cell and into the Tab Content cell. This allows you to create nested tabs as well. The depth level of the nested tabs is not limited, but we suggest avoiding extreme levels of depth.
![The nested tabs in the View mode](/resources/Storage/clickhelp-user-manual/Screenshots/insert-tabs/nested-tabs.png)
## Tabs Styling

Tabs can be styled with the CSS just like any other content. By default, there are several tab styles that exist in your [Style.css](/articles/clickhelp-user-manual/project-styles) file.

Click here to view the default Tabs CSS
 

```css
/* Tabs */

.CHTabs_container
{
}

.CHTabs_tabCaptionsContainer
{
}

.CHTabs_tabCaption
{  
}

.CHTabs_tabCaption:hover
{
  color: #2196F3;
  background-color: #E9F5FE;
}

.CHTabs_tabCaption.CHTabs_tabCaptionSelected,
.CHTabs_tabCaptionSelected:hover
{
  color: #2196F3;
  background-color: #cfe0ed;
}

.CHTabs_tabContentContainer
{
}
```


You can customize these to make the tabs look according to your needs: change the colors, typography, size, etc.:
![the customized tabs in the editing mode](/resources/Storage/clickhelp-user-manual/Screenshots/insert-tabs/tabs-customized-style.png)
## Conditional Tabs

You can also make the tabs [conditional](/articles/clickhelp-user-manual/dynamic-conditional-content) so that some tabs are displayed (or not) with certain [Output Tags](/articles/clickhelp-user-manual/output-tags).

To do this:

1. Place your cursor inside the title or the content cell of the tab you want to make conditional.
2. In the tag inspector below the ribbon, select the **tr** tag (this is the row corresponding to the tab)
3. On the ribbon, in the **Conditional Content** group of the **Single-Sourcing** tab, specify the output tag and click either the **Make Including** or **Make Excluding** button.

You will see the dashed border which indicates the corresponding tab is now conditional:
![Conditional tabs in the editing mode](/resources/Storage/clickhelp-user-manual/Screenshots/insert-tabs/conditional-tab.png)
## Code Samples in Multiple Programming Languages

To show the same code sample in multiple programming languages, you can utilize tabs to achieve that.

1. Insert the Tabs element with the desired number of tabs.
2. Change the tab captions to represent the languages.
3. Insert a [Code Sample](/articles/clickhelp-user-manual/code-highlighting) into the tab's content cell, choosing **Code only** layout.

![Code samples inserted into the Tabs](/resources/Storage/clickhelp-user-manual/Screenshots/insert-tabs/multiple-programming-languages-tabs.png)
## Tabs in Printed Formats

Since the Tabs are based on JavaScript which does not work in printed formats, they appear as tables in the printed versions of your documentation to preserve the content in a readable form.