What CSS property is used to change the alignment of text?
- text-align: justify;
- text-decoration: align;
- align-content: center;
- text-align: center;
The correct option is text-align: center;. This property is used to horizontally align text. text-align can take values like left, right, center, etc. The other options are incorrect or do not exist in CSS.
Loading...
Related Quiz
- What is the primary challenge when conducting cross-browser testing?
- Which CSS property defines the number of times an animation should run?
- What effect does the animation-timing-function value of steps(4, end) have on an animation?
- The CSS property ________ can be used to create custom text outlines that enhance readability for users with low vision.
- How do CSS Variables enhance the maintainability of CSS code?