1.

What do you mean by selectors in CSS3?

Answer»

In CSS3 the VALUE for a color property can be given in the below-mentioned ways.

  1. Predefined color names: ~140 color names are supported inCSS3. Examples like red, brown, blue, Aqua, Indigo, etc.,
  2. Hexadecimal values: The values are given in the format of #RRGGBB where RR is red, GG is green and BB is blue. The values are between 00 and FF.
  3. RGB values: RGB color value is specified using the RGB (red, green, blue) function. The RGB values are INTEGER values between 0 and 255 or percentage values between 0% to 100%
  4. RGBA values: RGBA color value is specified using the RGBA (red, green, blue, ALPHA) function. It’s similar to RGB value with an extra parameter called alpha which specifies the opacity.
  5. HSL values: HSL stands for hue, saturation, and lightness. HSL color value is specified with the HSL (hue, saturation, lightness) function. Hue is a degree on the color wheel (from 0 to 360). 0 (Zero) or 360 is red, 120 is green, 240 is blue. Saturation is a percentage value. 0% means a shade of grey and 100% is the full color. Lightness is also a percentage. 0% is black, 100% is white.
  6. HSLA values: HSLA color value is specified with the HSLA(hue, saturation, lightness, alpha) function. It’s similar to HSL values with an extra parameter called alpha which specifies the opacity.


Discussion

No Comment Found