Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

HTML

              
                <div class="container">

  <center>
    <h3>Tutorial Membuat Badge Dengan Bootstrap 4</h3>
    <h4><a href="https://www.malasngoding.com/badge-pada-bootstrap-4/">www.malasngoding.com</a></h4>
  </center>

  <br/>
  <br/>
  <br/>

  <h4>Badge</h4>
  <span class="badge badge-primary">Primary</span>
  <span class="badge badge-secondary">Secondary</span>
  <span class="badge badge-success">Success</span>
  <span class="badge badge-danger">Danger</span>
  <span class="badge badge-warning">Warning</span>
  <span class="badge badge-info">Info</span>
  <span class="badge badge-light">Light</span>
  <span class="badge badge-dark">Dark</span>

  <br/>
  <br/>

  <h4>Badge Pill</h4>
  <span class="badge badge-pill badge-primary">Primary</span>
  <span class="badge badge-pill badge-secondary">Secondary</span>
  <span class="badge badge-pill badge-success">Success</span>
  <span class="badge badge-pill badge-danger">Danger</span>
  <span class="badge badge-pill badge-warning">Warning</span>
  <span class="badge badge-pill badge-info">Info</span>
  <span class="badge badge-pill badge-light">Light</span>
  <span class="badge badge-pill badge-dark">Dark</span>

  <br/>
  <br/>

  <h4>Badge Link</h4>
  <a href="https://www.malasngoding.com" class="badge badge-primary">Primary</a>
  <a href="https://www.malasngoding.com" class="badge badge-secondary">Secondary</a>
  <a href="https://www.malasngoding.com" class="badge badge-success">Success</a>
  <a href="https://www.malasngoding.com" class="badge badge-danger">Danger</a>
  <a href="https://www.malasngoding.com" class="badge badge-warning">Warning</a>
  <a href="https://www.malasngoding.com" class="badge badge-info">Info</a>
  <a href="https://www.malasngoding.com" class="badge badge-light">Light</a>
  <a href="https://www.malasngoding.com" class="badge badge-dark">Dark</a>

  <br/>
  <br/>
  <br/>

  <h4>Contoh Penerapan</h4>

  <h1>Contoh Heading <span class="badge badge-secondary">Baru!</span></h1>
  <h2>Contoh Heading <span class="badge badge-secondary">Baru!</span></h2>
  <h3>Contoh Heading <span class="badge badge-secondary">Baru!</span></h3>
  <h4>Contoh Heading <span class="badge badge-secondary">Baru!</span></h4>
  <h5>Contoh Heading <span class="badge badge-secondary">Baru!</span></h5>
  <h6>Contoh Heading <span class="badge badge-secondary">Baru!</span></h6>

  <br/>

  <button type="button" class="btn btn-primary">
			Notifikasi <span class="badge badge-light">4</span>
		</button>

  <button type="button" class="btn btn-danger">
			Pesan <span class="badge badge-warning">9</span>
		</button>

</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console