fix(curriculum): clarify HSLA alpha can be a percentage in HSL lesson (#63897)

Signed-off-by: Bakshi Suhas <2410030479@klh.edu.in>
Co-authored-by: Bakshi Suhas <2410030479@klh.edu.in>
This commit is contained in:
BakshiSuhas
2025-11-21 13:43:34 +05:30
committed by GitHub
parent 8eda3b3a19
commit edbdc415e2
@@ -100,7 +100,7 @@ div {
:::
This code would give the `div` a semi-transparent red background, where the hue is set to `0` degrees (red), saturation is `100%`, lightness is `50%`, and alpha is `0.5` (50% opacity).
This code would give the `div` a semi-transparent red background, where the hue is set to `0` degrees (red), saturation is `100%`, lightness is `50%`, and alpha is `0.5` (50% opacity). You can also specify the alpha as a percentage — for example, `hsla(0, 100%, 50%, 50%)` is equivalent to `hsla(0, 100%, 50%, 0.5)`.
The HSL color model is particularly useful when you need to create color schemes and adjust shades or tints easily.