HTML HTML Basic MCQ Question #4797
Single Choice Not Set

QIn HTML, how do you add a background colour?

ID: #4797 HTML Basic MCQ 222 views
Question Info
#4797Q ID
Not SetDifficulty
HTML Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A
    
    <marquee bg color: "red">
    
  • B
    
    <marquee bg-color = "red">
    
  • C
    
    <marquee bgcolor = "red">
    
  • D
    
    <marquee color = "red">
    
Correct Answer

Explanation


The bgcolor attribute can be used to set the background color of an HTML element. 

The attribute is supported by a number of elements, including <body>, <table>, and <td>, and it can be used to specify the background color of the element using a color name, a hexadecimal code, or an RGB value.

Share This Question

Challenge a friend or share with your study group.