In this lesson we learn about how to use CSS to style text in web pages.
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.You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.