-
Book Overview & Buying
-
Table Of Contents
Web Developer's Reference Guide
By :
Form elements are various elements used in Bootstrap to make navigation and GUI more appealing and satisfying. Use of various text boxes, buttons, and so on enable better output.
There are three types of layout for forms:
Vertical forms
Inline forms
Horizontal forms
Vertical forms are the default layout of bootstrap forms. The attribute used here is role and the value of it is set to form to provide better accessibility and automatic and default styling for the form. The syntax for this is as follows:
<form role="form"> … </form>
Many a time, we also come across forms in which the elements of the forms are present inline and in a single line and left aligned. Inline forms are required to have the form-inline class for the <form> element. The syntax for this as follows:
<form class="form-inline" role="form"> … </form>
A horizontal form is the most nifty of this set and is broadly used on web pages to collect...
Change the font size
Change margin width
Change background colour