sriyanto

Fonts and Background Colors

Aug 7th, 2021
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.87 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.      <!-- Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.  
  8.     <!-- Bootstrap CSS -->
  9.     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
  10.  
  11.     <title>Fonts and Background Colors</title>
  12.   </head>
  13.   <body>
  14.     <div class="container">
  15.   <h2>Contextual Colors</h3>
  16.   <p>Use the contextual classes to provide "meaning through colors":</p>
  17.   <p class="text-muted">This text is muted.</p>
  18.   <p class="text-primary">This text is important.</p>
  19.   <p class="text-success">This text indicates success.</p>
  20.   <p class="text-info">This text represents some information.</p>
  21.   <p class="text-warning">This text represents a warning.</p>
  22.   <p class="text-danger">This text represents danger.</p>
  23.   <p class="text-secondary">Secondary text.</p>
  24.   <p class="text-dark">This text is dark grey.</p>
  25.   <p class="text-body">Default body color (often black).</p>
  26.   <p class="text-light">This text is light grey (on white background).</p>
  27.   <p class="text-white">This text is white (on white background).</p>
  28. </div>
  29. <div class="container">
  30.   <h2>Contextual Backgrounds</h2>
  31.   <p>Use the contextual background classes to provide "meaning through colors".</p>
  32.   <p>Note that you can also add a .text-* class if you want a different text color:</p>
  33.   <p class="bg-primary text-white">This text is important.</p>
  34.   <p class="bg-success text-white">This text indicates success.</p>
  35.   <p class="bg-info text-white">This text represents some information.</p>
  36.   <p class="bg-warning text-white">This text represents a warning.</p>
  37.   <p class="bg-danger text-white">This text represents danger.</p>
  38.   <p class="bg-secondary text-white">Secondary background color.</p>
  39.   <p class="bg-dark text-white">Dark grey background color.</p>
  40.   <p class="bg-light text-dark">Light grey background color.</p>
  41. </div>
  42.  
  43.     <!-- Optional JavaScript; choose one of the two! -->
  44.  
  45.     <!-- Option 1: Bootstrap Bundle with Popper -->
  46.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>
  47.  
  48.     <!-- Option 2: Separate Popper and Bootstrap JS -->
  49.     <!--
  50.    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js" integrity="sha384-eMNCOe7tC1doHpGoWe/6oMVemdAVTMs2xqW4mwXrXsW0L84Iytr2wi5v2QjrP/xp" crossorigin="anonymous"></script>
  51.    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js" integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/" crossorigin="anonymous"></script>
  52.    -->
  53.   </body>
  54. </html>
Add Comment
Please, Sign In to add comment