Using CSS we can style text on a web page in a number of different ways.
We can:
The CSS color
property is used to set the colour of text. We can give the color
property one of the following values:
Take a look at the CCS code in this example and to see how we use the color
property and the different values we can use.
We can also set the background colour of text by using the background-color
CSS property. Again this takes either a colour name, a HEX value or a RGB value.
We use the text-align
CSS property to set how the text should align. We can give it the following values:
text-align
properties to left, right, center and justify.We use the text-decoration
CSS property to add (or remove) decorations to text. We can give it the following values:
Take a look at the following HTML code (scroll to the right) and the CSS code to see how the different text decorations are used.