+ 1
What is difference between background-color and bgcolor?
17 ответов
+ 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">
+ 6
bgcolor is html attribute and background color is a css property
+ 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.
+ 4
bg-color is used in HTML and Background-color is used in CSS
+ 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..
+ 1
depends on elements....e.g.: < td> takes bgcolor and <body> take background-color....
+ 1
it's the same
+ 1
Nobody uses bgcolor anymore.
+ 1
bgcolor is an inline style
background-color is a style used with css
+ 1
bg color is not a css property, it is an attribute of a html element whence background color is a css property
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.
0
bachground color and bg color are same both are used for change the color of bachground .bgcolor is short form of bachgound color
- 2
No different.
- 2
bgcolour is use as inline style
& background-colour is mostly use with css
- 2
нет,нетак
- 2
how to change border image colour
- 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">