I knew it was rgba() but then stumbled a bit explaining the actual ranges.
Start by naming the function: rgb(). Then explain that it accepts three channel values (red, green, blue) and an optional alpha parameter (rgba() is the legacy syntax). Describe how each channel is interpreted: as a number between 0 and 255, or as a percentage between 0% and 100%. Finally, explain that the alpha value is a number between 0 and 1, where 0 is fully transparent and 1 is fully opaque.
Pro tip: Mention that modern CSS Color Module Level 4 allows space-separated syntax and the alpha value can be a percentage, and that rgb() and rgba() are now aliases. This shows you're up-to-date with current standards.
Identify the CSS color function as rgb() (or rgba() for the legacy syntax).
Describe that the first three arguments represent red, green, and blue channels, each accepting an integer from 0 to 255 or a percentage from 0% to 100%.
State that the optional fourth argument is alpha, a number from 0 to 1 (or a percentage in modern CSS), controlling opacity.
Note that rgb() and rgba() are now aliases, and that modern CSS allows space-separated values and percentages for alpha.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.