+ 3

How can I change the background color of my website with HTML or CSS?

Can you help me? Sorry for my English btw.

23rd Oct 2019, 6:48 PM
ItzDxniel
ItzDxniel - avatar
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:)
23rd Oct 2019, 7:26 PM
Raju Ram Sau
Raju Ram Sau - avatar
+ 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.
24th Oct 2019, 1:52 AM
Yilver Quevedo
Yilver Quevedo - avatar
+ 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; }
24th Oct 2019, 12:52 PM
Hayzeed
+ 1
Easiest way is, <body style="background-color:blue"> you can apply any color instead of blue :)
25th Oct 2019, 3:17 PM
Pathirana S.D.
+ 1
just target the body tag and give it a background-color property
26th Oct 2019, 1:47 PM
Tiny Jeremy
Tiny Jeremy - avatar