HTML Lessons
- HTML Introduction
- HTML Tags
- HTML Page Structure
- HTML Backgrounds
- HTML Formatting Text
- HTML Formatting Fonts
- HTML Headings
- HTML Entities
- HTML Line Breaks
- HTML Lists
- HTML HR- Horizontal Rule
- HTML Images
- HTML Links
- Table Introduction
- Table Rows & Columns
- Table Width
- Table Alignment
- Table Border Color
- Table Background Color
- Table Background Image
- Cell Alignment
- Cell Padding
- Cell Spacing
- Cell Spanning
|
Background Image
You can also include an image as the background of a table or cell by using
the background attribute. To set the background
image of a table insert the attribute into the opening table tag.
<body>
<table border="1" background="bricks.gif">
<tr>
<td>Text1</td>
<td>Text2</td>
</tr>
</table>
</body>
To set the background image of a specific cell insert the background
attribute into that cell.
<body>
<table border="1" >
<tr>
<td background="bricks.gif">Text1</td>
<td>Text2</td>
</tr>
</table>
</body>
|