banner
Welcome to HTML.co.uk, the number one resource for all news, information, and happenings regarding HTML.

Updates: HTML.co.uk has just been relaunched. Subscribe to our RSS Feed to stay on top of HTML news and techniques.
Jul
2nd

Important Information on How to work on HTML Colour Codes

Author: Editor | Files under HTML Tutorials
Tags for this article: , , , , , , , , ,

It is not easy for the beginners to make sense of the colour codes that are used in HTML. The HTML colour codes are been written in such a way that it has some specific reason. The colour codes of the HTML are been put together and are composed of the six hex numbers which would even represent the possibility of 16.7 million colour combination. The colour codes of the hex are been built on RGB colour model, where R is red, G is green and B is blue. In the typical HTML code it would look like #FFFFFF and it breaks down. Here in ‘#FFFFFF’, the initial two digits would represent the colour ‘red’. The next set of two digits of ‘#FFFFFF’ would represent ‘green’. The final and the third set of the two digits of ‘#FFFFFF’ would represent ‘blue’.

In the general mathematics the hex or a hexadecimal is the numeral system that has the base of the number 16 which is normally written by using the symbols from 0 – 9 and even A – F. the numbers from 0 – 9 would have the same value even in the decimal system but, it would start from the letter A, the value starts increasing till it reaches the value 16. A is equal to 10, B is equal to 11 and this continues till it reaches F, as F is equal to 16. This would be according to the hexadecimal system.

The colour model of RGB would be similar to the colour model of the HTML as it can represent the total of 16.7 million colours. It would vary among the colours green, red and blue. It would be possible for anyone to show the 16.7 million colours. The RGB value would be represented any of the numbers that is between 0 – 255. The set of the RGB values for white colour would be 255, 255, 255 for instance. Here you would also know how to establish the hex numeral system along with the numbers that are ranging from 0 – 16. After this you just need to combine both the hex numbers. You can even represent any numbers that is between 0 – 255. As you could even see that the colour codes of HTML and RGB represents some colour model.

Many years ago the monitors had the capacity to display only 256 colours. But even these monitors were very popular when HTML was put together. It would even be necessary to put the list of colours together as the web designers can also make sure that the given monitor could display it properly. The result of this would be the ‘web safe colours’. This ‘web safe colour’ palate would contain 216 colours. It would always be the good practise to take the standard colours over the board, but now it is not necessary to stick for the ‘web safe colours’. This rule might be excepted while developing the websites for PDA’s and even the mobile phones.


Jun
14th

Guide and Introduction to the HTML Colour Code Set

Author: Editor | Files under HTML Tutorials
Tags for this article: , , , , , , , , ,

Have you wondered ever on how the HTML colour code set will work together? Just for the beginners, it will look like several letters and numbers will not make no sense. The fact is that the HTML colour codes are very much written in the way for the specific reason that we will be looking below in this article.

Introducing the hexadecimal system
The hexadecimal system is just a numeral system with the base of 16 that is usually written using from 0-9 and A-F. Numbers from 0 to 9 have exactly the same values in the decimal system but they will start with the letters starting from A and going up to the value of 16. Here, A is worth 10 and it goes up to F which has value of 16.

How the colour codes are put together.
The HTML colour code is composed of 6 hex numbers that will be representing around 16.7 million colour combinations. These hex colours are built on the model of RGB. Here, R is for Red, G for Green and B stands for Blue. The typical HTML code looks like this: FFFFFF breaks as follows. The first 2 digits #FFFFFF will represent the colour red and the second set #FFFFFF stands for green and the third set #FFFFFF will stand for Blue.

Overview of RGB model
The RGB model like that of HTML colour model will represent more than 16.7 million colours. Just by varying the amount of Green, Red and Blue, you will be able to come up with any of the 16.7 million colours as well. Here the RGB is represented by the values from 0 to 255. So the value for the colour white will be somewhat 255, 255 and 255.

Putting the RGB and HTML together
Whenever you combine the 2 hexagonal numbers, you will be able to represent any type of number between 0 and 255. As you will be able to see that, the HTML and RGB colour codes will represent the same model of colour.

Colour Palette of Websafe
In the past, monitors used to display only 256 colours. When HTML was put together, the monitors with the 256 colours were very much popular. As it was very much necessary to put up the list of colours that the web designers could have to be sure that any given monitor could display properly as a result of this Websafe are colours. This Websafe colour palette is made of totally 216 colours.

Always it is a good practice to pick up the standard colours all across the board but it will not longer be necessary to stick up with the Websafe colours. By doing so it is now used for more purposes for holding to standard than it is for the necessity. One of the exceptions for this rule is developing the websites for the PDA’s and mobile phones. Now all the devices are crossing all the barriers that were used to be in the past.