Sonzaschool
Back

O-Level · Form 2 · Vocational · Electronics and Computer

Computer Programming

Managing colours in CSS

about 3 minutes to read

Discussions
Topics in this sectionFormatting web pages with Cascading Style Sheets (CSS)5 topics

In CSS, colours are used to make web pages visually appealing. Two important colour properties are color (which changes the text colour) and background-color (which changes the background colour of an element). These properties can be set using colour names, hexadecimal codes, or RGB values.

How you'll be assessedProcess assessment · Outcome assessment · Knowledge assessment

Process assessment

  • Identify colour properties in CSS.
  • Apply text colour using color.
  • Apply background colour using backgroundcolor.
  • Use different colour formats (hex, RGB, HSL).
  • Test colour application in the browser.

Outcome assessment

Colours in CSS are appropriately managed by formatting web pages according to design requirements.

Knowledge assessment

Detailed knowledge of:

Method used: The student should explain how to:

  • Apply CSS properties to manage colors, typography, and layout

Principles: The student should explain the principle of:

  • Colour models (RGB, hex, HSL).

Theories: The student should explain:

  • CSS color propertiesand inheritance
  • Color formats.

Circumstantial knowledge:

Detailed knowledge about:

  • color contrast for accessibility.

Question

Which CSS property is used to change the text colour of an HTML element?

Sign in to submit your answer and have it count toward your mastery.

Sign in to practice

Tutor

Stuck? Ask me anything about this topic.

Sign in to ask the Sonza AI Tutor about this question.

Sign in to ask

Discussions

No questions yet

Sign in to ask
Loading discussions…