0
div style="background-color:grey; color:red; padding:20px;">
please explain me this code why insted of "colour" we cannot write "textcolour". its confusing!
3 odpowiedzi
+ 3
simply because there is no attribute textcolor in HTML or CSS. the attribute is called color.
seeing there's background-color and border-color, I understand that it's confusing. I always wondered why there's no font-color. maybe it's because of simplicity.
+ 1
thnks @mario it really helped me
+ 1
Because the language was made in the USA. Color is American English for Colour in plain English.