Bootstrap block level help text


Bootstrap form controls can have a block level help text that flows with the inputs. To add a full width block of content, use the .help-block after the <input>.

The following example demonstrates this

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <form role = "form">
         <span>Example of Help Text</span>
         <input class = "form-control" type = "text" placeholder = "">
         <span class = "help-block">
            A longer block of help text that breaks onto a new line and may extend beyond one line.
         </span>
      </form>
   </body>
</html>

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 12-Jun-2020

907 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements