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

COMPUTER SOFTWARE APPLICATION - CITS


                                  Module 4 : PHP (Hyper Text Pre Processor)


           EXERCISE 47 : Demonstrate on- Paginators, popovers,

                                     progress, spinner


            Objectives

           At the end of this exercise you shall be able to
           •  use  paginators & popoves in HTML
           •  use progress bars in HTML
           •  use spinners in HTML.
           Requirements


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


           Procedure

           TASK 1: Using Paginators

           1  create a basic pagination
              •  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>Pagination </h2>
                 <p>a basic pagination</p>
                 <ul class=”pagination”>
                      <li class=”page-item”><a class=”page-link” href=”#”>Previous</a></li>
                      <li class=”page-item”><a class=”page-link” href=”#”>1</a></li>
                      <li class=”page-item”><a class=”page-link” href=”#”>2</a></li>
                      <li class=”page-item”><a class=”page-link” href=”#”>3</a></li>
                      <li class=”page-item”><a class=”page-link” href=”#”>Next</a></li>
                 </ul>
                 </div>
                 </body>
                 </html>



                                                           175
   185   186   187   188   189   190   191   192   193   194   195