Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <!DOCTYPE html>
<html lang="ru">
  <title>Bootstrap Tabs</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="">
  <script src=""></script>
  <script src=""></script>
  <script src=""></script>
<div class="container mt-3">
  <nav class="navbar navbar-expand-lg navbar-light bg-light">
    <div class="navbar-nav nav">
      <a data-btn="home" class="nav-link home active" href="#home">Tab1</a>
      <a data-btn="menu1" class="nav-link menu1" href="#menu1">Tab2</a>
      <a data-btn="menu2" class="nav-link menu2" href="#menu2">Tab3</a>
  <h2>Dynamic Tabs</h2>
  <!-- Nav tabs -->
  <ul class="nav nav-tabs">
    <li class="nav-item">
      <a data-btn="home" class="nav-link home active" href="#home">Tab 1</a>
    <li class="nav-item">
      <a data-btn="menu1" class="nav-link menu1" href="#menu1">Tab 2</a>
    <li class="nav-item">
      <a data-btn="menu2" class="nav-link menu2" href="#menu2">Tab 3</a>
  <!-- Tab panes -->
  <div class="tab-content">
    <div id="home" class="container tab-pane active"><br>
      <h3>Tab 1</h3>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
    <div id="menu1" class="container tab-pane fade"><br>
      <h3>Tab 2</h3>
      <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
    <div id="menu2" class="container tab-pane fade"><br>
      <h3>Tab 3</h3>
      <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.</p>





        var cls = $(this).data('btn');