Computer Science, asked by arnab266, 11 months ago

what is the difference between bgcolor and background attribute of body tag

Answers

Answered by salmanaffan
6
answers is The main difference is that bgcolor is an attribute used in the HTML document while background-color is a CSS property, used inside a declarations block within a CSS rule. Another difference is that bgcolor doesn't accept rgba () colors as value. There might be other differences, but the use of styling through HTML attributes is highly discouraged
Similar questions