Write a background color in html?



Write a background color in html?..

Answer / Ruchi Mishra

To set the background color in HTML, use the style attribute or CSS class. For example:nn<!-- Using inline style -->n<body style="background-color: #ffffff;">nn<!-- Using external CSS file -->n<body class="whiteBackground">

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

What does a href means and how it works?

1 Answers  


What is html5 geolocation? How to use it?

1 Answers  


Should nav be inside header?

1 Answers  


What is a <dl> tag in html?

1 Answers  


Is there any need to change the web browsers to support html5?

1 Answers  


Explain Canvas?

1 Answers   HCL,


How do you know if you have html5?

1 Answers  


What do you mean by session storage in HTML5?

1 Answers  


What is meta html?

1 Answers  


CSS has a lot of special rules that only apply to HTML. Do these also apply to XHTML?

2 Answers  


What are the different browsers that support html5?

1 Answers  


What is an element in html?

1 Answers  


Categories