How to add colour to background | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to add colour to background

1st Jan 2020, 11:15 AM
Golagha Atuyota Emmanuel
Golagha Atuyota Emmanuel - avatar
2 Answers
+ 1
Here's a sample code for inline css add <style> tag inside the <head> tag and add the following: body { background-color: place the color you want here ; }
2nd Jan 2020, 3:03 AM
Alfred
Alfred - avatar
0
You can do this using this CSS tag: background-color: /*Whatever your color is; it can be RGB, RGBA, and hexadecimal as well*/ This question has also been asked before, so I kindly suggest that you use the search bar first before asking.
1st Jan 2020, 1:45 PM
Jianmin Chen
Jianmin Chen - avatar