How are color names, RGB color values, and hexadecimal color values used?

What will be an ideal response?


Using Color Names: The color name values let you quickly state color using common names. Although the color names are easy to use, they allow only a small range of color expression. To use a wider variety of available color, you must use a more specific value, such as RGB or hexadecimal.

Using RGB Color Values: The RGB color model is used to specify numeric values that express the blending of the red, green, and blue color channels.When you specify RGB values, you are mixing the three basic colors to create a fourth color. Each of the three color channels can be specified in range from 0 to 100%, with 0 representing the absence of the color, and 100% representing the full brilliance of the color. If all three values are set to 0, the resulting color is black, which is the absence of all color. If all three color values are set to 100%, the resulting color is white, which is the inclusion of all colors.

The syntax for specifying RGB is the keyword rgb followed by three numerical values in parentheses-the first for red, the second for green, the third for blue.The following rule states a percentage RGB value:

            p {color: rgb(0, 100%, 100%);}

RGB color values can be specified as an integer value as well. The integer scale ranges from 0 to 255 with 255 equal to 100%.The following rules specify the same color:

            p {color: rgb(0%, 100%, 100%);}  /* percentages */
            p {color: rgb(0, 255, 255);}            /* integers */


Using Hexadecimal Color Values: HTML uses hexadecimal numbers to express RGB color values, and you can use them in CSS as well. Hexadecimal numbers are a base-16 numbering system, so the numbers run from 0 through 9 and then A through F. When compared to standard base-10 numbers, hexadecimal values look strange because they include letters in the numbering scheme. Hexadecimal color values are six-digit numbers; the first two define the red value, the second two define the green, and the third two define the blue. The hexadecimal scale ranges from 00 to FF with FF equal to 100%. Hexadecimal values are always preceded by a pound sign (#).The following rules specify the same color:

            p {color: #00FFFF;}                      /* hexadecimal */
            p {color: rgb(0%, 100%, 100%);}   /* percentages */
            p {color: rgb(0, 255, 255);}             /* integers */

Computer Science & Information Technology

You might also like to view...

Using the options found in the Special button of the Find and Replace, what can you place in the Find box?

A) A sentence B) A font type C) A paragraph mark D) The word "we"

Computer Science & Information Technology

________ are designed to copy files periodically in case your hard drive fails.

a. Disk manager programs b. Selective copy programs c. Backup software utilities d. Disk copy programs

Computer Science & Information Technology

The ____ collector is a generational collector that has been implemented to emphasize the throughput of the application or low garbage collection pause times.

A. incremental low pause B. concurrent low pause C. throughput D. serial

Computer Science & Information Technology

You are developing a new mobile application and are considering storing user preferences in AWS.2w This would provide a more uniform cross-device experience to users using multiple mobile devices to access the application. The preference data for each user is estimated to be 50KB in size Additionally 5 million customers are expected to use the application on a regular basis. The solution needs to be cost-effective, highly available, scalable and secure, how would you design a solution to meet the above requirements?

A. Setup an RDS MySQL instance in 2 availability zones to store the user preference data. Deploy a public facing application on a server in front of the database to manage security and access credentials B. Setup a DynamoDB table with an item for each user having the necessary attributes to hold the user preferences. The mobile application will query the user preferences directly from the DynamoDB table. Utilize STS. Web Identity Federation, and DynamoDB Fine Grained Access Control to authenticate and authorize access. C. Setup an RDS MySQL instance with multiple read replicas in 2 availability zones to store the user preference data .The mobile application will query the user preferences from the read replicas. Leverage the MySQL user management and access privilege system to manage security and access credentials. D. Store the user preference data in S3 Setup a DynamoDB table with an item for each user and an item attribute pointing to the user’ S3 object. The mobile application will retrieve the S3 URL from DynamoDB and then access the S3 object directly utilize STS, Web identity Federation, and S3 ACLs to authenticate and authorize access.

Computer Science & Information Technology