Loading

Quipoin Menu

Learn • Practice • Grow

css / Colors
interview

Q1. How can you specify colors in CSS?
Colors can be specified by name (red), hex code (#FF0000), RGB (rgb(255,0,0)), RGBA (rgba(255,0,0,0.5)), HSL, or HSLA.

Q2. What is the difference between RGB and RGBA?
RGBA adds an alpha channel for opacity, with values from 0 (transparent) to 1 (opaque). RGB has no transparency.

Q3. How do hex color codes work?
Hex codes use #RRGGBB format, where RR, GG, BB are hexadecimal values from 00 to FF representing red, green, and blue intensities.

Q4. What is HSL in CSS?
HSL stands for Hue, Saturation, Lightness. Hue is a degree (0-360), saturation and lightness are percentages.

Q5. What are web-safe colors?
Web-safe colors are 216 colors that display consistently across different monitors and browsers, important in early web development.