22-CSS Text Color


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

With CSS, a color is most often specified by:

a color name –  “yellow”

a HEX value –  “#ff0000”

an RGB value –  RGB(255,0,0)”

  • The direction property is used to set the text direction in which h you want to present the data.
  • The letter-spacing property is used to add or decrease the space between the letters that make up a word in a given sentence of your web page.
  • The word-spacing property is used to add or decrease the space between the words of a  given sentence of the paragraph provided.
  • The text-indent property is used to indent the text of a paragraph.
  • The text-align property is used to align the text of a document as per the user wish.
  • The text-decoration property is used to do  underline, overline, and strikethrough text presented in a paragraph or a division.
  • The text-transform property is used to capitalize text, or you may convert text to uppercase or lowercase letters.
  • The white-space property is used to control the flow and formatting of text.
  • The text-shadow property is used to set the text shadow around a  written text of any paragraph or division or simply  a text




Research on how to increase positive moods and capitalize on your strengths has proliferated, thanks to the positive psychology movement. This research has shed light on ongoing insights into personality, mood, and cognition. Though not everyone is born with a sunny disposition, experts do agree we can all learn how to bring more meaning and satisfaction into our lives.

This is an ordinary paragraph. Notice that this text is blue. The default text color for a page is defined in the body selector.


Another example demonstrating the use of Underline, line-through, overline, blink.


This will be underlined text completely!!

This will be striked through for a given wording.

This will have a over line of all the content presented in this paragraph.

This text will have blinking effect which will enhance its attractiveness!!

Facebook Comments
Previous article21-CSS Table
Next article23-CSS3 Flexbox Concepts
Hello Itsourcecoders, welcome to itsourcecode.com. I'm Joken Villanueva, MIT a passionate Blogger, Programmer and a Hobbyist. I started Itsourcecode because I wanted to give back and Share all the learnings and knowledge I've learned in my career and I believe through this website I would be able to help and assist those newbie programmers in enhancing their skills from different programming languages. So let us all help each other by sharing our ideas!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.