Step 9

Let's add bootstrap to style our application. Additionally, update the index.html to contain the initial content and layout of our application.

You can replace the content of index.html with the following:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Weather App</title>
  <link
    rel="stylesheet"
    href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"
    integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l"
    crossorigin="anonymous"
  />
  <link rel="stylesheet" href="style.css"> 
</head>
<body>
  <div class="fixed-top mt-5">
    <div class="container">
      <h1>Weather App</h1>
      <form id="search">
        <input
          id="city"
          name="city"
          class="form-control form-control-lg"
          type="text"
          placeholder="Enter a location to get weather forecast"
        />
      </form>
    </div>
  </div>
  <div class="fixed-bottom mb-5">
    <div class="container">
      <div class="row">
        <div id="name" class="col-sm h3 my-2 text-left align-middle">
          City Name
        </div>
        <div id="condition" class="col-sm h3 my-2 text-center">
          Weather Condition
        </div>
        <div id="temperature" class="col-sm h3 my-2 text-right">
          Temperature
        </div>
      </div>
    </div>
  </div>
</body>
</html>

Save the index.html file and observe the changes in the browser.