answersLogoWhite

0


Best Answer

Use styles

(in all examples, replace 'div' with the element of your choice, like 'body', 'p' etc)

  1. When you make use of a dedicated style sheet (for instance styles.css), and want to use this background image for all
    tags, and on all pages which make use of this sheet, add the following to this sheet.

    div {

    background-image: url(background.gif);

    }

  2. When you do not have a external style sheet, or want to use this background image only on one particular web page (but still for all
    -tags on that page, add the following lines to the header of that page (preferably just before the tag);

    <STYLETYPE="text/css">

    STYLE>

  3. If you want to use this background image only once, adjust your tag like;

    TEXT

CSS (Cascading Style Sheets) has much more options, like making use of classes and ID-selectors, but I guess the above will do.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can add image instead of bg color in HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How will you add image in HTML and servlet?

&lt;img src="image Path"&gt;


How do you use color tag in HTML?

You don't use color as a 'tag' so-to-speak. To specify a color you have to add the color attribute to a HTML element. For example:your_text_here


How do you upload an image in HTML code?

First add image (.jpg, .png, .gif) into 'images' folder in main root of the site. In HTML code add &lt;img alt="word or phrase describing image" height="162" src="path where image is coming from images/img.gif" width="917" /&gt;


What is the term for a picture or graphic that contains a link?

In HTML speaking it is called mapped image, you have image mapped that have link. The HTML tag for this is : &lt;map name="..."&gt;&lt;/map&gt; and to apply it on a image you add the attribute usemap="#mapName"


How do you insert image using aspnet?

You can add an image object using the asp:Image tag, or just use the html img tag.


How do you write in the right side of the image in HTML?

Add float:left; to the style element of the image. All following text will flow around the image on the right side.


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".


How can you sava image file when you want to add it with HTML document?

i read ---------- story about one-eyed giants


How do you make glitter graphics in HTML?

You can't reli create them in HTML, javascript would be a push but I think was you are looking for is the img tag of HTML therefore: You can create gilter graphics with a genertor customise you image then save and add an image tag in your HTML page. (added a link under related links)


Which tag is been used to add image using HTML?

Adding an image in you site is done by the syntax below:put this code between the body tags


Which link do you use from PhotoBucket to put an Image on your profile?

To add an image to your profile, just copy and paste the Direct Link onto it. The system will then change it into HTML code, for it to display properly. There is no need to use HTML or BBCode.


How do you add an image to an HTML website?

To add an image to a HTML document you use the &lt;img&gt; tag. Example: &lt;img src="html5.png" alt="HTML5 Icon" width="200" height="200"&gt; You can also specify the image dimensions using inline styles. Example: &lt;img src="html5.png" alt="HTML5 Icon" style="width:200px;height:200px;"&gt;