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

COMPUTER SOFTWARE APPLICATION - CITS




           4  Multiple Progress Bars

              •  Open the text editor
              •  Write the following codes
                 <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>
                 <br/>
                 <div class=”progress”>
                 <div class=”progress-bar bg-success” style=”width:40%”>
                 Free Space
                 </div>
                 <div class=”progress-bar bg-warning” style=”width:10%”>
                 Warning
                 </div>
                 <div class=”progress-bar bg-danger” style=”width:20%”>
                 Danger
                 </div>
                 </div>
                 </body>
                 </html>
              •  Save the program as a .html file
              •  Open the html file with a web browser

              •  Verify the output.






           TASK 4: Using Spinners

           1  Create a spinner/loader
              •  Open the text editor
              •  Write the following codes
                 <!DOCTYPE html>
                 <html>
                 <head>
                 <title>Bootstrap Example</title>
                 <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”>




                                                           186

                               CITS : IT & ITES - Computer Software Application - Exercise 47
   196   197   198   199   200   201   202   203   204   205   206