0

How can I add color to my html object

17th Oct 2020, 2:29 PM
Stalon Ngacha
2 Answers
+ 6
A small recap. You can also do it CSS style.. <html> <head> <title>first page</title> </head> <body style="background-color:0000ff"> <h1> <span style="color:ff00ff"> White headline </span> </h1> </body> </html>
17th Oct 2020, 2:42 PM
Aditya
Aditya - avatar
0
What do you mean by ‘add color’? If you mean background colour (color, whatever) then you can style it in the CSS tag/file with element/class name/id { background: color; } or by element/class mame/id { background-color: color; } If you meant text color then you can do element/class name/id { color: color; } or you can do that in the ‘style’ attribute of your element.
19th Oct 2020, 7:17 AM
thetechguy
thetechguy - avatar