Studyfin Studyfin ✨ Sign up free

CSS styling

Grade 9 · Coding · Free lesson

Hi there! Today we will explore how to style web pages and present digital data using CSS.

CSS stands for Cascading Style Sheets. It is the digital tool we use to design and style the layout of our web pages.

sitting

We use CSS to communicate data clearly to an audience. By changing colors and sizes, we help viewers understand what information is most important.

CSS Changes Color & Size!

To style an element, we select it and declare a property and value. For example, we can make our text green to show positive growth.

Styled Data Chart
✏️ Worked example

You want to display a digital report showing your school's recycling progress. You need to style the main heading to be purple and centered so that it grabs the audience's attention.

  1. Identify the HTML element you want to style. In this case, it is the main heading tag: <h1>.
  2. Write the CSS selector for the heading by typing 'h1' followed by open and closed curly braces.
  3. Inside the curly braces, add the color property and set its value to purple: 'color: purple;'.
  4. Add a second property to center the text: 'text-align: center;'.
  5. Review your final CSS rule: h1 { color: purple; text-align: center; }
oldtimer
Want the full interactive lesson — quiz, animations, and Finn cheering them on?

More Coding lessons