+ 1
Can anyone help me how to write colour code in html
4 Réponses
+ 2
there are many ways one popular one is hexadecimal code I think which you meant
see it is just mathematics the code tells amount of red green blue between range 0-255 0-12.7. that is 00 to F F
so if there is red it is #FF0000 becuase all red no green no blue darkred #AA0000 black #000000 then white #FFFFFF grey #AAAAAA
you can use tools to choose or you can get online services like colour picker of w3schools
0
Can you clarify a little? What're you trying to do?
0
<BODY BGCOLOR=________>
<FONT COLOR=________>
Of course, CSS is a better way to handle these things. Nevertheless, that is how with the pure HTML approach.
Note that the colors may be identified by your choice of 3 methods:
Color name (red, black, cornflowerblue)
Color Hex code (#ff0000)
Color RGB (rgb(255,0,0))
and yes, CornFlowerBlue is indeed a real color in HTML.