Advertisements
Advertisements
Question
Aarav is designing a webpage and wants to set the background color and text color. Write code to achieve this using HTML attributes.
Code Writing
Advertisements
Solution
Aarav can use the bgcolor attribute to set the background color and the text attribute to set the text color in HTML.
Example:
<body bgcolor="yellow" text="red">shaalaa.com
Is there an error in this question or solution?
