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 Pesan Alert Dengan Bootstrap 4</h3>
			<h4><a href="https://www.malasngoding.com/alert-bootstrap-4/">www.malasngoding.com</a></h4>
		</center>

		<!-- Contoh pesan notifikasi alert menggunakan bootstrap 4 -->

		<div class="alert alert-danger">
			Ini contoh alert danger!
		</div>

		<div class="alert alert-warning">
			Ini contoh alert warning!
		</div>

		<div class="alert alert-info">
			Ini contoh alert info!
		</div>

		<div class="alert alert-light">
			Ini contoh alert light!
		</div>

		<div class="alert alert-dark">
			Ini contoh alert dark!
		</div> 

		<hr>

		<h4>Posisi Text</h4>

		<div class="alert alert-info text-center">
			Selamat datang di <a href="https://www.malasngoding.com/alert-bootstrap-4/" class="alert-link"> Tutorial Bootstrap 4</a>
		</div>

		<div class="alert alert-primary text-right">
			Ini contoh alert primary! - Letaknya di kanan.
		</div>

		<div class="alert alert-secondary">
			Ini contoh alert secondary! - Letaknya di kiri.
		</div>

		<hr>
		<h4>Alert Dengan Tombol Close</h4>

		<div class="alert alert-primary alert-dismissible fade show">
			<strong>Halo!</strong> Selamat datang di www.malasngoding.com.
			<button type="button" class="close" data-dismiss="alert" aria-label="Close">
				<span aria-hidden="true">&times;</span>
			</button>
		</div>

		<div class="alert alert-danger alert-dismissible fade show">
			<strong>Kamu!</strong> Ini contoh alert dengann tombol close.
			<button type="button" class="close" data-dismiss="alert" aria-label="Close">
				<span aria-hidden="true">&times;</span>
			</button>
		</div>

	</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console