Why is the html colour is not working ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is the html colour is not working ?

html colour

26th Jul 2020, 4:36 PM
Shadowkillyt Shadowkill youtuber
Shadowkillyt Shadowkill youtuber - avatar
16 Answers
+ 8
It depends on how you define the colour paraventure you apply a background colour to an empty text it may not go I recommend you revisit your HTML colour lessons or view open source codes to have a comparison check and identify your errors
27th Jul 2020, 2:22 PM
Ademolu Ajao {Back to SL soon}📚🇳🇬
Ademolu Ajao {Back to SL soon}📚🇳🇬 - avatar
+ 7
Borders don't have a background, so you might have used an invalid attribute to define the color...
26th Jul 2020, 4:40 PM
Sandra Meyer
Sandra Meyer - avatar
+ 7
Your mistake might be anywere so link your code here so we can help you ; )
26th Jul 2020, 4:57 PM
Rawley
Rawley - avatar
+ 5
It works normally and without showing here, I can't imagine a case where it would not work...
26th Jul 2020, 4:38 PM
Sandra Meyer
Sandra Meyer - avatar
+ 5
Add style property to your tag and apply color, background-color n whatever you want..... try this
28th Jul 2020, 12:42 AM
Išhwäŕÿā.P 👑
Išhwäŕÿā.P 👑 - avatar
+ 4
Shadowkillyt Shadowkill youtuber Use background-color: blue; To give a blue background color. Use color: blue; To give blue color to font Use border: 2px solid blue; To give a 2px solid border with blue color.
26th Jul 2020, 7:02 PM
maf
maf - avatar
+ 4
yhaa sure i try it maf
26th Jul 2020, 11:37 PM
Shadowkillyt Shadowkill youtuber
Shadowkillyt Shadowkill youtuber - avatar
+ 4
You can as well use the codes. Every color has a code, try it. E.g #aaaaa is for grey and so on.
27th Jul 2020, 2:46 PM
Idris Azeez
Idris Azeez - avatar
+ 4
Please also link code , I don't understand
28th Jul 2020, 2:43 AM
Master Genius [ INACTIVE ]
Master Genius [ INACTIVE ] - avatar
+ 4
Shadowkillyt Shadowkill youtuber Please Show me the code in which you are facing problem.
28th Jul 2020, 6:38 AM
ıllıllı Ո૯υ੮ՐคՆ ıllıllı
ıllıllı Ո૯υ੮ՐคՆ ıllıllı - avatar
+ 4
For border border:2px solid red ; To add color to border
28th Jul 2020, 8:10 AM
Divya Mohan
Divya Mohan - avatar
+ 3
like where i try to add bg colour to border
26th Jul 2020, 4:39 PM
Shadowkillyt Shadowkill youtuber
Shadowkillyt Shadowkill youtuber - avatar
+ 3
thank qwicky🖤
26th Jul 2020, 11:36 PM
Shadowkillyt Shadowkill youtuber
Shadowkillyt Shadowkill youtuber - avatar
+ 3
Shadowkillyt Shadowkill youtuber Link ur code mate :) thats the best way for us to solve the problem
28th Jul 2020, 1:05 AM
maf
maf - avatar
+ 3
Link the code here so we can find a solution to the code.
28th Jul 2020, 1:47 PM
Oloyede Martins
+ 3
Try this <html> <head> <title>first page</title> </head> <body bgcolor="#000099"> <h1> <font color="#FFFFFF"> White headline </font> </h1> </body> </html>
28th Jul 2020, 3:46 PM
MANAN
MANAN - avatar