I'm confused about color in "How CSS is structured"

I’m reading “How CSS is structured(Functions)”. I don’t have knowledge about color at all. So I’m confused about the words: rgb, rgba, hsl, hsla. I plan to try reading “Applying color to HTML elements using CSS” before writing CSS rules. Is there anything else? Or, what I need for now is just applying styling?

I’m reading the article as a part of a course.

As a start I think it’s enough to understand the “RGB” section of this article.

For the CSS lessons it is helpful to know about following versions to define a color:

  • color: green;
  • color: #3f88ac;
  • color: rgb(112, 23, 210);
  • color: rgba(72, 201, 14, 0.4);
1 Like