Related HTML colouring the text | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 4

Related HTML colouring the text

I am confused when we write colour in hexadecimal format like #00000 how we can give colour by giving a specific number?

16th May 2020, 5:09 PM
Muhammad Bilal
Muhammad Bilal - avatar
34 Respuestas
+ 17
hex codes are RGB, red - green - blue for three digit hex code, e. g. #123 1 is red (1 out of 15) 2 is green (2 out of 15) 3 is blue (3 out of 15) for six digit hex code, e. g. #22aa88 22 is red (22 out of 255) aa is green (10*16+10 out of 255) 88 is blue (88 out of 255) the larger the number, the more that color. e. g. #ff0000 is pure red #00ff00 is pure green #0000ff is pure blue so #ff00ff is red + blue = purple
16th May 2020, 6:17 PM
Gordon
Gordon - avatar
+ 5
You can open color mixer on here https://www.w3schools.com/colors/colors_mixer.asp
16th May 2020, 5:41 PM
ycsvenom
ycsvenom - avatar
+ 3
https://code.sololearn.com/WMSkYLwkX4Ij/?ref=app here is ur answer
17th May 2020, 6:23 PM
DANLEOPRIME
DANLEOPRIME - avatar
+ 2
Can you explain your question?
16th May 2020, 5:20 PM
ycsvenom
ycsvenom - avatar
+ 2
Simply how to colour the text with the help to #type..
16th May 2020, 5:22 PM
Muhammad Bilal
Muhammad Bilal - avatar
+ 2
Just type yellow 😅
16th May 2020, 5:24 PM
ycsvenom
ycsvenom - avatar
+ 2
#000000 for black #FFFFFF for white #FF0000 for red #00FF00 for green #0000FF for blue
16th May 2020, 5:27 PM
ycsvenom
ycsvenom - avatar
+ 2
I will give advice Don't ever ask for points or like or upvotes
16th May 2020, 5:31 PM
ycsvenom
ycsvenom - avatar
+ 1
Which color
16th May 2020, 5:22 PM
ycsvenom
ycsvenom - avatar
+ 1
Any colour like yellow
16th May 2020, 5:23 PM
Muhammad Bilal
Muhammad Bilal - avatar
+ 1
When you need more than form from general color then use hexa color
16th May 2020, 5:25 PM
ycsvenom
ycsvenom - avatar
+ 1
Brother am just asking in #type format... Have you done this course??
16th May 2020, 5:25 PM
Muhammad Bilal
Muhammad Bilal - avatar
+ 1
Absolutely
16th May 2020, 5:25 PM
ycsvenom
ycsvenom - avatar
+ 1
It depends in which color you want
16th May 2020, 5:26 PM
ycsvenom
ycsvenom - avatar
+ 1
Yes this is my question 😁
16th May 2020, 5:29 PM
Muhammad Bilal
Muhammad Bilal - avatar
+ 1
Thanks please give me a point,
16th May 2020, 5:30 PM
Muhammad Bilal
Muhammad Bilal - avatar
+ 1
I know the answer.plz go chatbox and send sms to me .I will give you answer
17th May 2020, 6:57 AM
Md Sahid Sk
Md Sahid Sk - avatar
+ 1
Gordon Very nice explanation :))
17th May 2020, 6:53 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 1
Color numbers are specified using hexadecimal (base 16) values. The hexidecimal digits are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F (where A through F equal the base 10 numbers: 10, 11, 12, 13, 14, 15) The six digit color number is broken into three groups of two digits which specify the amount of Red, Green, and Blue in the color (using additive color...the way colored lights mix, not the way color pigments mix). Each two digit hex pair can have a value from 00 to FF (FF=256 in base 10). This gives over 16 million possible colors. For example: #FF0000 means FF worth of Red, and no Green or Blue. The result is RED. #0000FF means no Red or Green, and FF worth of Blue. The result is BLUE. #FFFF00 means FF worth of Red and Green, and Blue. The result is YELLOW. #000000 means no Red, Green, or Blue. The result is BLACK. #FFFFFF means full FF amounts of Red, Green, and Blue. The result is WHITE. #FFEFD5 has high values for all colors, giving a light result: PAPAYAWHIP. (no, I don't know who thought up the color names.) #556B2F has lower values for all colors, giving a darker result: DARKOLIVEGREEN.
19th May 2020, 9:26 AM
Kamal
Kamal - avatar
0
I just asked for my understanding not for like something
16th May 2020, 5:33 PM
Muhammad Bilal
Muhammad Bilal - avatar