Can you apply a border attribute to <td>?

I can apply a border to tables, but I’m not managing to apply it to my <td>s. It occurred to me this might not be possible. A google search left me confused (perhaps I didn’t use the right terms), can someone set me straight?

The following has always worked for me:

td {border: 1px solid #000;}

[font=verdana]You can apply borders to table cells, and felgall has given you the code.

One thing you need to consider is whether you want table cells separated with a gap between the borders (as used to be the default display for tables back in the days before CSS) or whether you want the borders to ‘collapse’, ie a single border separating adjacent cells.[/font]