In this tutorial I will use the tile as a background image but it can be used for almost everything else. Create a CSS file (style.css for example) and add the code of the type you want to use to it.
Repeat background image
body
{
background: url('path-to-the-image');
}
Repeat background image only horizontally
body
{
background: url('path-to-the-image') repeat-x;
}
Repeat background image only vertically
body
{
background: url('path-to-the-image') repeat-y;
}
Including the CSS file
Include this code between <head> and </head> tags
<link rel="stylesheet" href="path-to-the-css-file" media="screen" />