Text color | SoloLearn: Learn to code for FREE!

+1

Text color

How does #FFF mean white in p{color:#FFF;} ?

12/10/2019 7:53:45 PM

Vaneet Gupta

3 Answers

New Answer

+3

Three elements are used after # as shorthand where each element is doubled. e.g #123 = #112233 #000 = #000000 #fff = #ffffff

+1

It's a common shortcut for colors with all the same characters # introduces the color hexadecimal and three characters are compiled as six... #FFFFFF is white

+1

rgb(256,256,256) is The last possible values ​​are for coloring, and in hexadecimal value last value is f #fff=#ffffff is white because its last of value.