The following is a technique to replace text with an image using CSS and no additional markup. Please be aware that if the user disables images, they will not be able to see the text of an element employing this technique.
CSS Code:
h1
{
height:[height of image]px;
background:url([location of image]) no-repeat top left;
text-indent:-2000px;
}
HTML Code:
<h1>This is some text to be replaced.</h1>