Bootstrap Tutorial - Mark input element with form control class








The following code shows how to mark input element with form control class.

Example

<!--  w  w w. jav a 2 s  .  com-->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
</head>
<body>
  <h1>Contact Us</h1>
  <form action="" method="POST">
    <label for="subject">Subject</label> <input type="text" name="subject"
      class="form-control"> <label for="email">Email</label> <input
      type="email" name="email" class="form-control"> <label
      for="body">Message</label>
    <textarea name="body" rows="10" class="form-control"></textarea>
    <input type="submit" class="form-control">
  </form>
</body>
</html>

Click to view the demo