Inputs
The input element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.
Input text type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input
type="text"
class="input input-primary"
placeholder="Primary"
/>
<input
type="text"
class="input input-secondary"
placeholder="Secondary"
/>
<input
type="text"
class="input input-success"
placeholder="Success"
/>
<input type="text" class="input input-info" placeholder="info" />
<input
type="text"
class="input input-danger"
placeholder="Danger"
/>
Submit and Reset Input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="submit" class="btn btn-success" value="Submit" />
<input type="reset" class="btn btn-secondary" />
Quantity and search Input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input
type="number"
id="quantity"
class="input input-secondary"
placeholder="1-5"
name="quantity"
min="1"
max="5"
/>
<input
type="search"
class="input input-secondary"
id="gsearch"
name="gsearch"
placeholder="gsearch"
/>