+ 2
how do you change the background colour in HTML?
how do you change the background colour in HTML? If the <style> tag is reqired, pls help with that too.
7 Respuestas
+ 3
<style>
body{
background-color: __color here__;
}
</style>
+ 8
Just Remember one thing if you are setting background color with html use "bgcolor" and if you are setting it with css use " background-color " property.
+ 4
With a little help from CSS.
+ 2
The font tag is hopelessly outdated, it is better to use a class (or id) and css
+ 2
Place below code in ur webpage head section
<style>
body {
background-color : _colorName ;
}
</style>
+ 1
<body bgcolor=“black”>
<font color=“red”> Hello! </font>
</body>
This will give you black background with ‘Hello!’ in red.
0
Es mejor usar CSS externo en otro archivo y vincularlo a tu archivo html ejemplo:
<link rel="stylesheet" type="text/css" href="archivo.css" />
Y adentro del archivo CSS escribes:
body {
background-color: color*;
}