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

COMPUTER SOFTWARE APPLICATION - CITS




              </style>
              </head>
              <body>
              <div class=”container mt-5”>
              <h1>Floats Example</h1>
              <div class=”row”>
              <div class=”col-md-6”>
              <div class=”bg-primary p-3 mb-3”>
              <p>This is content floated left.</p>
              <p class=”float-start”>Floated left content</p>
              <p class=”float-start”>Another floated left content</p>
              </div>
              </div>
              <div class=”col-md-6”>
              <div class=”bg-secondary p-3 mb-3”>
              <p>This is content floated right.</p>
              <p class=”float-end”>Floated right content</p>
              <p class=”float-end”>Another floated right content</p>
              </div>
              </div>
              </div>
              </div>
              <script src=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.0alpha1/dist/js/bootstrap.bundle.min.js”></script>
              </body>
              </html>
           3  Save the program as a .html file
           4  Open the html file with a web browser
           5  Verify the output.


















           TASK 5: Using flexs
           1  Open the text editor
           2  Write the following codes

              <!DOCTYPE html>
              <html lang=”en”>
              <head>
              <meta charset=”UTF-8”>
              <meta name=”viewport” content=”width=device-width, initial-scale=1.0”>
              <title>Bootstrap v5 Flex Example</title>
              <link href=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css” rel=”stylesheet”>



                                                           205

                               CITS : IT & ITES - Computer Software Application - Exercise 49
   215   216   217   218   219   220   221   222   223   224   225