Colour is vital to making attractive websites and application. This tutorial will explore the two main ways for selecting and using colours in your code.
Every colour is associated with a reference value. There are several ways of displaying these values but one of the most common is the hexadecimal (HEX) format.
You can use the below colour picker to find out what the HEX value is for any given colour:
HEX values can be used to style elements in CSS. For example, if you wanted to change the colour of the links and paragraph text on your website then you could use the following CSS code:
a {
color: #2cc73e;
}
Using specific colour values is beneficial if you have a specific shade in mind; however, if you intend to use a more common colour then you may prefer to use its name instead. Below is a full table of the colours you can refer to by name:
x10hosting offers free and fast web hosting as well as other extras for your website such as custom email address and SQL databases. Creating a free or premium account using this link will help support this site.