Pls snd the ans for ques no.2 fast
Attachments:
AMM111:
bg color used to set a backgroung image
Answers
Answered by
1
Bgcolor is used to set a background color of the web page while background is used to insert an image in the. Background of the web page .
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">
The bgcolor attribute was superseded by CSS in 1996.
CSS background properties:
Are more reusableHave a higher priority than presentational attributesTake a wider selection of values (including translucent ones)Can be stored in an external stylesheet and cached between requestsApply more consistently across different element types
bgcolor is not a css property, it is an attribute of an html element. Further, it is deprecated in the current recommendations.
background is a css property, shorthand for background-color, -image, -position, -repeat and -attachment.
There will be differences, because they do different, but similar things. As regarding tables, you run into another series of differences due to the table's special purpose.
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">
The bgcolor attribute was superseded by CSS in 1996.
CSS background properties:
Are more reusableHave a higher priority than presentational attributesTake a wider selection of values (including translucent ones)Can be stored in an external stylesheet and cached between requestsApply more consistently across different element types
bgcolor is not a css property, it is an attribute of an html element. Further, it is deprecated in the current recommendations.
background is a css property, shorthand for background-color, -image, -position, -repeat and -attachment.
There will be differences, because they do different, but similar things. As regarding tables, you run into another series of differences due to the table's special purpose.
Similar questions