twitter-bootstrap-3 Getting started with twitter-bootstrap-3 Installation


Example

  • Direct Download - download link
  • CDN - get here
  • Bower - bower install bootstrap [read]
  • NPM - npm install bootstrap [read]
  • Composer - composer require twbs/bootstrap [read]
  • Customize - I you have your own config, you can customize here.
  • Sass - For Sass related projects you may get it here.

Usage

<head>
  <link rel="stylesheet" href="path/to/bootstrap.min.css">
</head>

Reference to the bootstrap js file is made using script tag just above body tag (see below). Also note bootstrap is using jQuery for most of it widgets - like accordion carousel etc.. so reference bootstrap js file below the jQuery js file.

**Sample**
<!DOCTYPE html>
<html lang="en">

<head>

  <title>Form Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>

<body>

  <div class="container">
    <h2>Form Email</h2>
    <form role="form">
      <div class="form-group">
        <label for="email">Email:</label>
        <input type="email" class="form-control" id="email" placeholder="Enter email">
      </div>
      <div class="form-group">
        <label for="pwd">Password:</label>
        <input type="password" class="form-control" id="pwd" placeholder="Enter password">
      </div>
      <div class="checkbox">
        <label><input type="checkbox"> Remember me</label>
      </div>
      <button type="submit" class="btn btn-default">Submit</button>
    </form>
  </div>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</body>

</html>