Thursday, August 31, 2017

Color & Codes

Colors and codes

The use of colors on web pages is very important. A web page is composed of one or more paragraphs, titles, tables, backgrounds, borders, etc. Each of these elements has to use some colors. To specify the background color for a particular page, after typing body in the <body> tag, bgcolor = "" will be written with a space followed by "black", "silver", "gray", "white", "marrow", "ray", "fur", "fuschia", "green" , OLIVE, YELLOW, NAVY, BLUE, TEAL, and AQUA, any one of these sixteen colors will be visible in the page's background. Since case is not sensitive then there is no problem writing in lower case, as written, <body bgcolor = "green">.
Besides, using the hexadecimal code can also be selected in the background color. For example, the above code can be written as: <body bgcolor = "# 00FF00">
The color piker can be easily collected for different color hexadecimal codes. You can also do the following charts. The hexadecimal code starts with a # symbol at the beginning of the order.


There is another interesting method to give a background color. These three colors are red, green and blue, and all the other colors are composed of these three colors. If you combine these three colors and create new colors, then it is not bad. To accomplish this task, the green background can be written as follows
<Body bgcolor = "rgb (0,255,0)">.
Here rgb stands for red green blue (0, 255,0), meaning that the color of red, green, blue in color respectively, 0%, 100%, 0% because of the pure green color taken here. And any color value can be up to 0-255. Since the value of g or green is 255 so that is 100%. Changing the value of the three colors to 0-255, you can create new colors as desired.

Example Programs
<Html>
<Head>
<Title> www.tutohost.com </ title>
</ Head>
<Body bgcolor = "green">
<H2 style = "color: # ff0000">
This is your website
</ H2>
<P style = "color: # 093">
This is a paragraph. <br />
This is a paragraph <br />
This is a paragraph. <br />
This is a paragraph. <br />
</ P>
</ Body>
</ Html>

Open a Notepad and enter the code above and click on Save as from the File menu, save as file name: index.html, Save as type: All files, save index.html file with Mozilla Firefox, as shown below.

No comments:

Post a Comment

Flash Addition Tags

Flash Addition One of the most interesting elements of the Flash Animation Web site. Attractive navigation bars, banners, buttons, etc. t...