What is the correct HTML for adding a background color?
A. <body style = “background-color : yellow” >
B. <body background= “yellow” >
C. < background >yellow< /background >
D. All of the above
Answer: Option A
Solution (By Examveda Team)
The correct HTML for adding a background color uses the style attribute within the tag.Option A: <body style = “background-color : yellow” > - This is the correct answer. The style attribute allows inline CSS to set the background color.
Option B: <body background= “yellow” > - This is incorrect. The background attribute is deprecated and not used to set a background color.
Option C: <background >yellow< /background > - This is incorrect. The
Option D: All of the above - This is incorrect because only Option A is the correct way to add a background color in HTML.
Related User Ask Questions
Which of the following is not a primary function of a Bank?
A. Granting Loans
B. Collecting Cheques/Drafts customers
C. Facilitating import of goods
D. Issuing Bank Drafts
A. Regulatory jurisdictional fight between SEBI and IRDA
B. They don’t offer better tax benefits
C. They offer lesser returns compared to traditional insurance policies
D. All of the above
The Chameli Devi Jain Award is given for an outstanding woman ____?
A. Scientist
B. Reporter
C. Player
D. Teacher

Join The Discussion