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

COMPUTER SOFTWARE APPLICATION - CITS




           3  Pagination - Disabled State

              •  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- Disabled </h2>
                 <p> Add class . disabled to disable the pagination </p>
                 <ul class=”pagination”>
                      <li class=”page-item disabled”><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>
              •  Save the program as a .html file
              •  Open the html file with a web browser

              •  Verify the output.
















           4  Pagination Sizing
              •  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”>



                                                           177

                               CITS : IT & ITES - Computer Software Application - Exercise 47
   187   188   189   190   191   192   193   194   195   196   197