0
How can I add color to my html object
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>
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.