You can use images to greatly enhance your web pages. Images are used in four main ways in XHTML:
An inline image is created using the <img> tag. Take a look at the following code:
<img src = "twoPi.jpg"
alt = "a silly cartoon of my face" />
The code produces the following image:
There are several items to note about this tag:
Any address you give for a web resource can be given in one of two primary ways: absolute or relative. Here's how they work:
<img src = "http://www.cs.iupui.edu/~aharris/face.gif"
alt = "Me before I shave" />

<img src = "twoPi.jpg"
alt = "a silly cartoon of my face" />

Any CSS style can have a background image applied to it.The background-image property is used to do this. Here is the code that created the background image used on this page:
body {
background-image: url("bgPattern3.jpg")
}
There are a few important things to know about background images:
Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background.
Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background.
Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background.
Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background. Background images are something of an art form. They should be subtle. This paragraph shows what can happen when you use the wrong kind of image in a background.
A good background image has the following characteristics: