Coding for Beginners: CSS Basics #70— Adding Color to Your Fonts

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerWeb Design3 min

About this video

This short beginner lesson shows how to add color to text with the CSS color property and explains the color systems available, including color names, rgb, rgba, hex and hsl. It also covers coloring part of a text block by wrapping it in an element such as a span. It is aimed at designers learning basic HTML and CSS.

What you’ll learn

  • Set the text color of an element with the CSS color property
  • Apply colors using names, rgb, hsl or hexadecimal values
  • Color part of a text block by wrapping it in a span element