HTML - Programming Language (MCQ) questions for Q. 27548

Q.  What is the preferred way for adding a background color in HTML?
- Published on 26 Feb 17

a. <body background="yellow">
b. <background>yellow</background>
c. <body style="background-color:yellow">    
d. <background color="yellow">text<background>

ANSWER: <body style="background-color:yellow">    

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)