Forms: Bootstrap provides a set of styles and components for building forms. You can use Bootstrap's form classes to style input fields, labels, buttons, and other form elements. Here's an example:
html
<form>
<div class="form-group">
<label for="username">Username:</label>
<input type="text" class="form-control" id="username">
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" class="form-control" id="password">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
This code creates a simple login form using Bootstrap's form classes.
No comments:
Post a Comment