Selamat hari senin lagi ya teman-teman dan selamat beraktifitas kembali, disini saya juga tidak bosannya kembali untuk membuat artikel pada hari senin ini, oke untuk kali ini masih seputar bootstrap disini kita akan mengetahui kumpulan background warna yang terdapat pada bootstrap 4, memang untuk membuat background itu hal yang mudah apa lagi teman-teman yang sudah biasa menggunakan CSS, tetapi bootstrap sendiri menyediakan dengan classnya dimana class itu membuat efek pada background. oke jangan kemana-mana simak terus ya teman-teman.

Kumpulan background warna yang terdapat pada bootstrap 4, Warna yang di hasilkan tidak bisa semau kita, jadi bootstrap sudah menyediakan warna-warna dari bawannya, apa saja itu:

  1. primary
  2. secondary
  3. success
  4. danger
  5. warning
  6. info
  7. light
  8. dark
  9. white

jika kita lihat nama tersebut tidak mencerminkan warna ya teman-teman, kecuali dark dan white. Untuk warna apa saja yang akan keluar kita coba dalam template website yang kita punya, tinggal saya tambahkan saja pada bagian bawahnnya.

<!DOCTYPE html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>kumpulan background warna yang terdapat pada bootstrap 4</title>
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
   
  </head>
  <body>
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <h1>kumpulan background warna yang terdapat pada bootstrap 4</h1>
        <div class="row bg-success">
        <div class="col-md-6">
          <p class="text-lowercase d-block bg-danger">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's <span class="d-block bg-warning text-uppercase"> standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book</span> . It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
        </div>
          <div class="col-md-6">
          <p  class="text-capitalize">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance.</p>
        </div>  
        </div>
        <div class="p-3 mb-2 bg-primary text-white">.bg-primary</div>
        <div class="p-3 mb-2 bg-secondary text-white">.bg-secondary</div>
        <div class="p-3 mb-2 bg-success text-white">.bg-success</div>
        <div class="p-3 mb-2 bg-danger text-white">.bg-danger</div>
        <div class="p-3 mb-2 bg-warning text-white">.bg-warning</div>
        <div class="p-3 mb-2 bg-info text-white">.bg-info</div>
        <div class="p-3 mb-2 bg-light text-dark">.bg-light</div>
        <div class="p-3 mb-2 bg-dark text-white">.bg-dark</div>
        <div class="p-3 mb-2 bg-white text-dark">.bg-white</div>
      </div>
    </div>
  </div>
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <-e-script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"><-e-/script>
    <-e-script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"><-e-/script>
    <-e-script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"><-e-/script>
  </body>
</html>

Kumpulan background warna yang terdapat pada bootstrap 4

karena background bodynya putih maka ketika saya berika efek white tetap putih ya teman-teman, saya rasa cukup sampai disini dulu belajar kita tentang Kumpulan background warna yang terdapat pada bootstrap 4, semoga bermanfaat dan sampai jumpa