text-center do in Bootstrap?text-center to a paragraph?The text-center class in Bootstrap applies text-align: center; CSS style, which centers the text horizontally inside its container.
Bootstrap 5 uses text-start and text-end for left and right alignment respectively, to support different writing directions. text-right is deprecated.
<div> when viewed in a browser?<div class="text-sm-start text-md-center text-lg-end">Responsive Text</div>
The classes text-sm-start, text-md-center, and text-lg-end apply text alignment starting at small, medium, and large breakpoints respectively. So the text aligns left on small screens, center on medium, and right on large screens.
text-justify class apply?text-justify. Which CSS property and value does it apply to the element?The text-justify class applies text-align: justify; which spreads out the text so both left and right edges align with the container edges.
text-center for large blocks of text in Bootstrap?Center-aligned large blocks of text can make it harder for some users, especially those with dyslexia or cognitive disabilities, to follow lines because the starting point of each line changes. Left-aligned text is generally easier to read.