CSS Course

Lesson 4: Text Styling

Font Properties

Change text appearance with font-family, font-size, font-weight, and font-style.

Text Alignment

Use text-align to align text: left, right, center, or justify.

Example

h1 { font-family: Arial; text-align: center; }
p { font-size: 18px; line-height: 1.5; }