Loading

Quipoin Menu

Learn • Practice • Grow

html / Colors
interview

Q1. How can you specify colors in HTML?
Colors can be specified by color names (red), hexadecimal values (#FF0000), RGB (rgb(255,0,0)), RGBA, HSL, or HSLA.

Q2. What is the hexadecimal color format?
Hex colors use # followed by 6 characters: RRGGBB. Each pair represents red, green, blue values from 00 to FF.

Q3. What is the RGB color format?
RGB uses rgb(red, green, blue) with values 0-255. Example: rgb(255, 0, 0) is red.

Q4. What does RGBA add to RGB?
RGBA adds alpha channel for opacity: rgba(255,0,0,0.5) is semi-transparent red with 50% opacity.

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