answersLogoWhite

0

It is done with the bgcolor attribute. For example, to set a blue background for the whole web page, you would use it in the BODY tag, like this:

<body bgcolor="blue">

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

What is the correct HTML for inserting a background image?

< body background = " background.gif">


What is the correct HTML tag for inserting a line brake?

&lt;BR&gt;


What is the correct HTML tag for a inserting a line break?

&lt;br&gt;


What is the correct HTML element for inserting a line break?

Correct HTML tag for inserting a line break? you can use &lt;br/&gt;


What is the code of backround in HTML?

Background can be easily added into the HTML code. in the &lt;style&gt; element you can add background-color="red".


What is bgcolor?

bg color is the abbreviation of background color there is a command used in HTML which set the background color which u want


What is the preferred way for adding a background color for HTML?

The preferred method for adding background color to an element is not through HTML, but rather through CSS (i.e. the background-color statement). Older versions of HTML support the now-deprecated (and soon obsolete) bgcolor element attribute.


What is the background code for a HTML document?

A background can be added on CSS. ex: #body {background: url(../images/bodybg.jpg) repeat-x;}The HTML code for background color is Note: The code must be put inside the body tag, that is between and of your HTML script and the values of color can be change accordingly. For example, if you want to put gray background color you simply change the value to "#727272" or "#000000" for black if you want.


What is a HTML code for a background on tinierme?

If for an image: &lt;body background="images/background.jpg"&gt; or if for a color: &lt;body bgcolor="#000000"&gt;


HTML for adding a background color?

It's not HTML. Background color is a CSS style. You need to put in either a stylesheet, or attach the style attribute to the tag whose background color you're trying to set. For instance: &lt;p style="background-color:blue;"&gt;This paragraph would have a blue background.&lt;/p&gt; Colors in CSS can be set using names (there's 170 or so of them) Via a hexadecimal RGB value: &lt;p style="background-color:#b3b3b3;"&gt;This a meduim gray. The pairs of hex digits correspond to RGB.&lt;/p&gt; Using RGB directly: &lt;p style="background-color: rgb(179,179,179);"&gt;This is the same color as #b3b3b3&lt;/p&gt; And using RGBA (which gives you an alpha channel, letting you set transparency) &lt;p style="background-color: rgba( 179, 179, 179, .5 );"&gt;This paragraphs background color would be 50% transparent.&lt;/p&gt;


What is the default background color for the canvas element in HTML 5.0?

The default background color for the &lt;canvas&gt; element in HTML5 is the same as the browser default background color. If there is a style sheet or &lt;body&gt; tag that defines the color, &lt;canvas&gt; will inherited that color. You can add style attributes to the &lt;canvas&gt; tag to set a different default background color for the element.


Where could one find a tutorial for inserting an image using HTML?

One can find a tutorial for inserting an image using HTML on a variety of online sources. Such sources include PageTutor, HTML, MyHTMLTutorials, and TheSiteWizard.