Text formatting in HTML and CSS allows you to control the color, alignment, decoration, transformation, and spacing of text on a web page. Here are some examples of how you can apply these text styles:
## Text Color:
You can set the color of your text using the CSS `color` property.
“`html
.red-text {
color: red;
}
This is red text.
“`
## Text Alignment:
You can align text within an element using the `text-align` property