Page 204 - Computer Software Application TP - Volume 1
P. 204

COMPUTER SOFTWARE APPLICATION - CITS




           EXERCISE 48 : Demonstrateon Table, toasts, tooltips


            Objectives

           At the end of this exercise you shall be able to
           •  use bootstrap tables in HTML
           •  use bootstrap toasts in HTML
           •  use bootstrap tooltips in HTML.

           Requirements


           Tools/Materials
           •   Desktop/Laptop with latest configuration
           •   web browser
           •  Internet connection

           Procedure


           TASK 1: Using Table
           1  Create a basic Bootstrap 5 table
              •  Open the text editor

              •  Write the following codes
                 <!DOCTYPE html>
                 <html lang=”en”>
                 <head>
                 <title>Bootstrap Example</title>
                 <meta charset=”utf-8”>
                 <meta name=”viewport” content=”width=device-width, initial-scale=1”>
                 <link href=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css”   rel=”stylesheet”>
                 <script src=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js”></script>
                 </head>
                 <body>
                 <div class=”container mt-3”>
                 <h2>Table</h2>
                 <table class=”table”>
                 <thead>
                 <tr>
                      <th>Firstname</th>
                      <th>Lastname</th>
                      <th>Email</th>
                 </tr>
                 </thead>
                 <tbody>
                 <tr>
                      <td>John</td>
                      <td>Doe</td>
                      <td>john@example.com</td>






                                                           189
   199   200   201   202   203   204   205   206   207   208   209