10form.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Bootstrap grid system</title>
  5. <meta charset="utf-8"/>
  6. <meta http-equiv="X-UA-COMPATIBLE" content="IE=Edge"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <link rel="stylesheet" href="../css/bootstrap.min.css"/>
  9. <link rel="stylesheet" href="styles.css" />
  10. <!--[if lt IE 9]>
  11. <script src="../js/html5shiv.3-7-0.js"></script>
  12. <script src="../js/respond.1-4-2.min.js"></script>
  13. <![endif]-->
  14. </head>
  15. <body>
  16. <div class="container">
  17. <div class="page-header">
  18. <h1>Chapter 3
  19. <small>Exploring Bootstrap components: form</small>
  20. </h1>
  21. </div>
  22. <form class="form">
  23. <div class="form-group">
  24. <label for="nameField">Name</label>
  25. <input type="text" class="form-control" id="nameField" placeholder="Your name" />
  26. </div>
  27. <div class="form-group">
  28. <label for="emailField">E-mail</label>
  29. <input type="text" class="form-control" id="emailField" placeholder="Your email" />
  30. </div>
  31. <div class="form-group">
  32. <label for="phoneField">Phone number</label>
  33. <input type="text" class="form-control" id="phoneField" placeholder="Your phone number" disabled />
  34. </div>
  35. <div class="form-group">
  36. <label for="descField">Description</label>
  37. <textarea class="form-control" id="descField" placeholder="Your comments"></textarea>
  38. </div>
  39. <button type="submit" class="btn btn-primary">Submit</button>
  40. <button type="reset" class="btn btn-default">Reset</button>
  41. </form>
  42. </div>
  43. <!-- https://ajax.googleapis.com/ajax/libs/jquery/1.11.1.jquery.min.js -->
  44. <script src="../js/jquery-1.11.2.min.js"></script>
  45. <script src="../js/bootstrap.js"></script>
  46. </body>
  47. </html>