1. Which of the following is a valid CSS color value?
The rgb(255,0,0) value represents red in RGB color format. CSS supports named colors, HEX, RGB, RGBA, and HSL. This is often asked in web styling interviews.
h1 { color: rgb(255, 0, 0); }Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
Amazon · CSS
Practice CSS questions specifically asked in Amazon interviews – ideal for online test preparation, technical rounds and final HR discussions.
Questions
3
Tagged for this company + subject
Company
Amazon
View company-wise questions
Subject
CSS
Explore topic-wise practice
Go through each question and its explanation. Use this page for targeted revision just before your Amazon CSS round.
The rgb(255,0,0) value represents red in RGB color format. CSS supports named colors, HEX, RGB, RGBA, and HSL. This is often asked in web styling interviews.
h1 { color: rgb(255, 0, 0); }For complete preparation, combine this company + subject page with full company-wise practice and subject-wise practice. You can also explore other companies and topics from the links below.
Check for typos, rule order, specificity, and file linking. Use browser dev tools to inspect applied styles. Showing a structured approach like this in interviews demonstrates practical experience.
/* Example: Using DevTools to check active CSS rules */
When CSS rules conflict, you can open the browser’s Developer Tools and inspect the element. The 'Computed' tab shows the final applied styles. The browser uses specificity and the cascade order to determine which rule wins.
/* Use browser DevTools > Computed Styles */