what is the difference between BORDERCOLOR and BGCOLOR attribute
Answers
Answered by
43
The background-color attribute is used in style tag or the CSS code. e.g.- <body style="background-color:green;">.
The bgcolor attribute is used straightaway of any tag in html. e.g.- <body bgcolor="red">.
A border is an attribute of a table element that describes the width of a table border.
A bgcolor is an attribute standard that specifies the background color that is needed in a table.
A bgcolor is an older way of learning but for creating professional websites background-color should be used.
Using a background-color is useful because a person can provide one background-color to a lot of HTML elements.
Similar questions