Text Color


Text Color

Topic Progress:

We can use CSS to change the color of text on a website. In the below example the color of headings(<h1> tags) and subheadings(<h2> tags) have been changed. This will change ALL <h1> and <h2> tags on the website.

Remember to go to files and have a look at the CSS and HTML file.

In the example CSS, h1 and h2 are the selectors, color is the property and red and blue are the values.


Not recently active