Borders

Borders can be placed around every CSS element

Single letter: a

Block of text: Text Text Text

An image:

Below is a table that contains nine cells.
The Table border and cell 1 are using the standard HTML table attributes border=2px and bordercolor=black which are included in the opening <Table> tag.

Style attributes have been included in the opening <td> tags 2-8 to create a different border for each of the individual cells.
Cell borders of 4 pixels are used in these examples.

1) HTML 2) SOLID 3) DASHED
4) DOTTED 5) DOUBLE 6) GROOVE
7) RIDGE 8) INSET 9) OUTSET

<table border=2px bordercolor=black width=70% height=40% cellspacing=10px>
<tr align=center>
<td>1) HTML</td>
<td style="border:4px solid;border-color:#FF0000">2) SOLID</td>
<td style="border:4px dashed;border-color:#FFFF00">3) DASHED</td>
</tr>
<tr align=center>
<td style="border:4px dotted;border-color:#00AA00">4) DOTTED</td>
<td style="border:4px double;border-color:#0000FF">5) DOUBLE</td>
<td style="border:4px groove;border-color:#FF55FF">6) GROOVE</td>
</tr>
<tr align=center>
<td style="border:4px ridge;border-color:#55FF55">7) RIDGE</td>
<td style="border:4px inset;border-color:#5555FF">8) INSET</td>
<td style="border:4px outset;border-color:#FF5555">9) OUTSET</td>
</tr>
</table>

If you leave out the table attributes border=2px and bordercolor=black, you get a table with cell borders but no table border.
Notice cell No.1 border also disappears.

1) HTML 2) SOLID 3) DASHED
4) DOTTED 5) DOUBLE 6) GROOVE
7) RIDGE 8) INSET 9) OUTSET

The effects will differ slightly depending on your browser.