+ 1

What is difference between background-color and bgcolor?

14th Mar 2016, 11:31 PM
hackeroromis
hackeroromis - avatar
17 Réponses
+ 15
background-color is used in CSS code or in style tag. e.g.- <body style="background-color:red;"> bgcolor is used directly as an attribute of any tag in html. e.g.- <body bgcolor="red">
5th Jun 2016, 9:46 AM
Rishav Raj
Rishav Raj - avatar
+ 6
bgcolor is html attribute and background color is a css property
31st May 2016, 1:37 PM
Arsalan MuhammadHussain
Arsalan MuhammadHussain - avatar
+ 4
Nobody uses bgcolor it is older way but helpful for learning purpose but if you are creating professional websites so then you should consider using background-color by CSS. Using background-color is also helpful because you can provide one background-color to many HTML elements.
31st May 2016, 9:27 AM
Rahul Kashyap
Rahul Kashyap - avatar
+ 4
bg-color is used in HTML and Background-color is used in CSS
26th Jun 2016, 9:11 AM
Desik
Desik - avatar
+ 2
bgcolor is the attribute to use when u wanna change the background color of a cell.. bgcolor attribute could also be used to change the background color of the webpage..
17th Mar 2016, 11:00 AM
Darwin Cantong
Darwin Cantong - avatar
+ 1
depends on elements....e.g.: < td> takes bgcolor and <body> take background-color....
29th May 2016, 10:16 AM
Muhammad Nauman Bootter
+ 1
it's the same
29th May 2016, 8:11 PM
Carlos Daniel De La Cruz Salvatierra
Carlos Daniel De La Cruz Salvatierra - avatar
+ 1
Nobody uses bgcolor anymore.
30th May 2016, 1:36 AM
Murph Strange
Murph Strange - avatar
+ 1
bgcolor is an inline style background-color is a style used with css
30th May 2016, 5:29 AM
Emmanuel Amanga
Emmanuel Amanga - avatar
+ 1
bg color is not a css property, it is an attribute of a html element whence background color is a css property
18th Jun 2016, 1:34 PM
Jay Rishi
Jay Rishi - avatar
0
both performs same operations on html elements but, the bgcolor property is used in html tags statement and is attribute of most of html tags while backgrounds-color attribute is used in css.
9th Jun 2016, 7:16 PM
Saurav Kumawat
Saurav Kumawat - avatar
0
bachground color and bg color are same both are used for change the color of bachground .bgcolor is short form of bachgound color
1st Jul 2016, 5:44 PM
Kshama Sachan
Kshama Sachan - avatar
- 2
No different.
28th May 2016, 8:14 PM
Ringo -Agario
Ringo -Agario - avatar
- 2
bgcolour is use as inline style & background-colour is mostly use with css
30th May 2016, 7:16 AM
Animesh Roy
Animesh Roy - avatar
- 2
нет,нетак
6th Jun 2016, 2:15 AM
Verulashvili Mikhail Alecseevich
Verulashvili Mikhail Alecseevich - avatar
- 2
how to change border image colour
8th Jun 2016, 7:11 AM
ajay kumar
ajay kumar - avatar
- 4
background-color is used in CSS code or in style tag. e.g.- <body style="background-color:red;"> bgcolor is used directly as an attribute of any tag in html. e.g.- <body bgcolor="red">
5th Jun 2016, 6:11 PM
tarun prasad
tarun prasad - avatar