Which Bootstrap utility class is used for changing the text alignment?
- text-left
- text-center
- text-right
- text-justify
In Bootstrap, the class text-center is used to align text in the center. It sets the text-align property to center, providing a simple way to horizontally center text within its parent element. Other classes like text-left, text-right, and text-justify are used for left alignment, right alignment, and justified text, respectively.
Loading...
Related Quiz
- Which Bootstrap component is most commonly used to show or update data dynamically with AJAX?
- For a full-width navigation bar that extends the entire viewport, use the 'navbar-___' class in Bootstrap.
- Explain the use of sizing classes in Bootstrap forms and their effect on input elements.
- To make a layout responsive, Bootstrap uses the ___ grid system.
- How can you trigger an alert to close automatically in Bootstrap?