📖 Samacheer Kalvi · 11th TN - English Medium · Computer Applications · Page 225question

Unit III · Part 5

Chapter 4: CHAPTER 10 · Computer Applications

</head> <body bgcolor = yellow> This is my browser with different colour </body> </html> Illustration . – HTML code to change background colour of a browser In the above HTML code, colour name has been used to change the background colour of the browser’s body section. Generally colors in HTML are represented as six digit hexadecimal values. Colour name can be used for only few colors.

But, color code (hexadecimal value) will be more flexible to handle colors. The six digit hexadecimal value is the combinations of three, two digit number sequence represent a color. First two digits represent Red, next two digits for Green and last two digits for Blue (RGB) in the range of – FF. For example, 000000 is black and FFFFFF is white.

FF0000 is bright red. You can try out different combinations of these values to get variety of colors. You can use some basic color names or color code to handle colors in HTML elements. Modern browsers support nearly colors.

Color code should be prefixed with #. The following table shows some basic colors with their hexadecimal code. Table . – Some basic Color names with code Color Name Hexadecimal value Color Name Hexadecimal value Red #FF0000 Olive #808000 Blue # 0000FF White #FFFFFF Green #008000 Black #000000 Yellow #FFFF00 Maroon #800000 Lime # 00FF00 Grey #808080 Purple #800080 Aqua #00FFFF Silver #C0C0C0 Brown #A52A2A <html> <head> <title> Background Colour change </title> </head> <body bgcolor = yellow> This is my browser with different colour </body> </html> bgcolor - Notepad File Edit Format View Help File Edit View Favorites Tools Help Background Colour change This is my browser with different colour D:\ \HTML\ The Colour of the browser turns in yellow Figure .

Internet Explorer with Yellow background Chapter Pages To know the complete color code visit: <html> <head> <title> Background Colour change </title> </head> <body bgcolor = #FFFF00> This is my browser with different colour </body> </html> The above illustration . can be re-written as follows to get the result (ii) Body text Colour: text

Related topics

Have a question about this topic?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →