Computers, Programming
Encoding html. How are web pages painted?
As a way of encoding information for its transmission over the Internet, the html encoding is used. The determining parameter during this process is the number of bits involved, it is with their help that a particular symbol is transmitted. So one bit encodes a pair of values, two bits are calculated for the encoding of four values, three bits for eight. Adding a bit, you can double the number of encoded values. So, 8 bits are able to encode 256 sequences (values) in binary code. A notable feature is that each sequence retains the ability to transmit one text symbol. An alternative to encoding with eight bits is the encoding of 16 and 32-bit, they are already able to process 65536 and, accordingly, 4294967296 text characters.
The html encoding allows you to display information correctly on a web page. Thanks to the existing protocol, there is an exchange between the server and the web browser of the service information, which contains exhaustive data about the method used to encode the text.
Using the HTTP protocol, the process of sending a message from the web browser to the server of messages is received, the server retrieves the necessary page and translates it (recodes) into the required format. If there is no document on the server (web page), it becomes necessary to select the necessary encoding yourself (manually).
The html encoding allows you to set the parameters of the page being loaded. After all, the rating of a web resource depends on the correctness of the perception of its browsers by users. For example, even the color scheme used on the page is specified using the code.
The above color representation is given for greater clarity, the html encoding assumes the use of a hexadecimal notation (HEX), which starts with the # sign. When writing in the HEX code, the black color will be represented as # 000000, the white color is #FFFFFF, and the gray color is # C0C0C0. The primary color coding for red, green and blue will look like # FF0000, # 00FF00, # 0000FF, respectively.
The W3C Consortium uses 16 colors, valid for HTML and CSS. For them, the names are aquamarine (aqua), blue, black, fuchsia, green, gray, lime or lime, ultramarine (navy), chestnut (maroon ), Olive, red, purple, silver, white, teal and yellow. For colors that are not included in this list, it is more correct to use the HEX or RGB code.
A few years ago, the notion of "safe colors" was widespread, limiting the range of colors used in the creation of web pages to 216 web colors. The development of computer technology has removed any restrictions on this issue.
Similar articles
Trending Now