+ 3
How can I change the background color of my website with HTML or CSS?
Can you help me? Sorry for my English btw.
5 Antworten
+ 5
The best way is to change the background to define the BODY tag in CSS.
Example:
1. For colour background:-
body{
background-color: gray;
}
Here you can put the colour according to you.
2. For image background:-
body{
background-image: url("apple.jpg");
}
You can modify the background according to you using the various selector and respective properties.
Hope it helps
Happy coding:)
+ 3
Si solo quieres cambiar el color (background) de tu pagina lo puedes hacer con solo HTML:
<body style="background:color"> <\body
Ahora bien sería mejor enlazar un documento CSS por si quieres añadir más estilos a tú página.
+ 2
Using HTML:
To change the background color in HTML, use the <style> tag inside the <head> tag. For example,to set the background color of page to yellow:
<html>
<head>
<title>Background Color</title>
<style>
body {
background-color:Yellow;
}
</style>
</head>
Using CSS:
Changing background color in CSS is done like this:
body {
background-color:yellow;
}
+ 1
Easiest way is,
<body style="background-color:blue">
you can apply any color instead of blue
:)
+ 1
just target the body tag and give it a background-color property