ComputersProgramming

What is an HTML color table, and what is it for?

Designing a website, especially when developing its design from scratch, many people face such a problem as coloring the page of the site, tables, text. In many site designers there are special modules and buttons, with the help of which these parameters are set. But not all of them have a wide functional. That's where the HTML color table comes in.

What is a color chart

In programming, regardless of language, many commands and parameters are given by special short notations. The language of HTML markup was not an exception. It has a fairly wide range of commands and notations.

In order to colorize an element of a page or text in the right hue, you should know about such a concept as a table of HTML color codes. It contains the basic codes of a particular color or shade. Using them, you can specify the tone of any element by registering it in a specific tag.

The code in the table is transmitted using a hexadecimal system. Each color consists of six characters. Each pair of symbols indicates the intensity of a particular color. The first one is responsible for the red color, the second for the green, the third for the blue.

The color code always starts with a grid sign (#). For example, the black code will look like this: "# 000000".

It's worth noting that some webmasters use a truncated version of the code, using only three characters - one from each pair. But still we recommend that you use the generally accepted designations.

What are the color tables for HTML?

HTML color table is presented in several variants. The first is the base colors. There are only sixteen of them. This includes colors such as red, gray, silver, white, black, green, blue, blue, yellow and others. They are quite convenient to use for text processing, as they are all quite saturated and bright. Then you can select the so-called "Safe Color Chart", which has 216 shades displayed on any video card. This table is fairly easy to find in any HTML tutorial. It should be noted that it is suitable if you are directly engaged in the design of a site or a page, and you need exactly the shades of colors - both saturated and light and barely noticeable.

Also, let's highlight a table of shades of gray color, which contains more than 10 variants. It is also suitable for website design, especially for the background background for the main text. Any of these codes can also be used if you need to set the text color in the HTML table for footnotes or small subscriptions.

Than to replace?

What if I do not have a color chart at hand? This option can not be excluded, even though it is widely used and refers to open and accessible information.

If you can not find this material, you can record the color as a percentage. At the same time, you will not need a grating sign. But to set the hue in this way is quite difficult and dreary, since you will never know in advance what you can get. The record in this format might look like this: "10P%". However, we do not recommend this method of color recording. The HTML color table will be much more reliable than such experiments.

The third way to specify a color is to write its name in English. Basically, browsers read and adequately perceive the names of the primary colors, as well as their shades marked with the values dark (dark), light (light). For example, black color is set as Black, and dark red is set to DarkRed.

conclusions

The HTML color table is one of the most important things that web designers need to know about. With its help, you can "colorize" the pages of the site, text, tables and other elements.

The table contains the most commonly used colors and their codes, consisting of three pairs of signs indicating the intensity of red, green and blue colors. You can find it in any HTML tutorial.

In case you do not have a table at hand, you can set the color using its name in English.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.birmiss.com. Theme powered by WordPress.