CSS Texts – Color, Alignment, Decoration, transformation, Spacing – letter-spacing, text-indent, line-height

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

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top