Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

8. CSS - Text

Lesson 8 of 34 in the free CSS Customization: Zero to Hero notes on Siksha Sarovar, written by Rohit Jangra.

CSS Text Formatting

This chapter contains properties that allow you to format text.

1. text-color

The color property is used to set the color of the text.

body {
  color: blue;
}

2. text-align

The text-align property is used to set the horizontal alignment of a text.

  • left, right, center, justify.

3. text-decoration

The text-decoration property is used to set or remove decorations from text.

  • none: Often used to remove underlines from links.
  • underline, overline, line-through.

4. text-transform

The text-transform property is used to specify uppercase and lowercase letters in a text.

  • uppercase: Converts text to all uppercase.
  • lowercase: Converts text to all lowercase.
  • capitalize: Capitalizes the first letter of each word.

5. text-indent

Specifies the indentation of the first line of a text-block.

p {
  text-indent: 50px;
}

6. letter-spacing & word-spacing

  • letter-spacing: Increases or decreases space between characters.
  • word-spacing: Increases or decreases space between words.