W3.CSS allows many colors to be used directly in the code. Some of them are:
Colours in W3.CSS are much interesting in the way they are used. Very simple predesigned classes are available to which we can use in HTML code. Following classes are available in W3.CSS for coloring elements:
India
India is a great country. Geographically it is located in South Asia.
Here, the class w3-orange puts an orange background to the div.
Output:
India
India is a great country. Geographically it is located in South Asia.
Here, the class w3-orange puts an orange background to the div and, The class w3-text-teal changes the text colour.
Output:
India
India is a great country. Geographically it is located in South Asia.
Here, the class w3-orange puts an orange background to the div and, The class w3-hover-green changes the background color on hover.
Output:
India
India is a great country. Geographically it is located in South Asia.
Here, the class w3-text-teal makes the text teal in the div and, The class w3-hover-text-orange changes the text colour on hover.
Output: