Stacey R. Brodsky wrote:
> I have created a table, but I want all of the text int the table to be
> <code></code>.
<code> says nothing about the way the text should look. It just says that
the text is "a fragment of computer code".
> I have tried it outside the table and inside...the only
> place it works is if I surround the text in each <td></td> with the 'code'
> tag.
In this context, that is the only place it is valid. <code> is an inline
element.
> Is there a way to have the whole table print in 'code' without having to
> repeat the tag over, and over again? Possibly a style sheet...although I
> would have no idea how to do that.
It seems somewhat unlikely that you have computer code that is tabular data.
If it really is code, then you need to place the <code> tags in each cell
(and stop using a table if it is not real tabular data).
If it isn't really code, then you should stop using a tag becuase of the way
your browser happens to present that data to the user - use a style sheet
for presentation (in combination with tags which correctly structure the
text).
http://dorward.me.uk/www/css/#tutorials has links to basic style sheet
tutorials.
--
David Dorward <http://dorward.me.uk/>