CSS Text

Text Properties

  • text-align: aligns text horizontally.
  • text-transform: controls capitalization.
  • text-decoration: adds decorative lines.

Text Styling

Use font properties like font-size and font-weight to style text.

Examples

h1 { text-align: center; text-transform: uppercase; }
p { font-size: 16px; font-weight: 300; }