Colour code in html | SoloLearn: Learn to code for FREE!

+1

Colour code in html

We know that with the help of colour coding ee can easily program to fill the components svG with intresting colour?why we use only 3 or 6 combination of sets?what we have to do if we need more sets of colour combination?if the editing is more easy in css than why we study HTML

12/28/2017 9:01:52 AM

Rishav kumar

2 Answers

New Answer

+5

Combine colour::: RED+GREEN =#FF0000+ #00FF00 =#FFFF00 Result is yellow

0

Your colour settings should be made in your stylesheet not in your html document. This way we separate the content of the document (html) from the styling (css). Why do we study html? Without the html there would be nothing to apply a style to. CSS colours are specified using three number groups - red, green and blue. The numbers can be in hexidecimal or decimal formats. e.g. #FF0000 = rgb(255, 0, 0) = red #00FF00 = rgb(0, 255, 0) = green #0000FF = rgb(0, 0, 255) = blue The range of values for each colour component is 0 to 255 decimal, or 00 to FF hexadecimal. This gives us over 16 million colours to choose from so why would you want more colours? For a more in-depth look at CSS colours see https://www.w3schools.com/colors/default.asp