📅  最后修改于: 2023-12-03 15:15:33.245000             🧑  作者: Mango
HTML Bootstrap Textarea is a form control that allows users to input and edit multiple lines of text. It is commonly used in forms and can be styled using Bootstrap's classes to give it a modern and sleek look.
To create a textarea in HTML, you use the
<textarea rows="4" cols="50">
Enter text here...
</textarea>
Bootstrap provides classes that can be applied to a textarea element to change its appearance. The most commonly used classes are form-control to apply the default styling for form elements and rounded to give the textarea rounded corners. Here is an example of a Bootstrap styled textarea:
<textarea class="form-control rounded" rows="4" cols="50">
Enter text here...
</textarea>
Textareas are often used in forms to allow users to input large amounts of text. They can be used in the same way as other form inputs by wrapping them in a
<form>
<div class="form-group">
<label for="exampleFormControlTextarea1">Example textarea</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
HTML Bootstrap Textarea is a useful form control for allowing users to input and edit multiple lines of text. With the help of Bootstrap's classes, you can easily style it to match the rest of your website's design.