Button classes can be used in <a>
, <button>
, or <input>
elements.
The following example puts a large and light-blue "Search" button in the Jumbotron.
To achieve this effect, we will use the .btn-lg
and .btn-info
classes:
Why do we put a # in the href attribute of the link? Since we do not have any page to link it to, and we do not want to get a "404" message, we put # as the link. In real life it should of course been a real URL to the "Search" page. |
Bootstrap also provides 200 glyphicons.
To display a glyphicon, simply write:
The code line above will display a Print icon like this:
The following example adds a Search icon on the "Search" button: