Forum Moderators: open

Message Too Old, No Replies

what does the tag <td class="" do

What does the Table Option Tag td class do

         

domoftheuk

9:02 pm on Sep 22, 2004 (gmt 0)

10+ Year Member



What does the Table Option Tag td class do

<td class=""></td>

example BBC News UK Edition

<!-- start bbc toolbar -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="tbsh" colspan="2"><a href="#startcontent"><img src="http://newsimg.bbc.co.uk/shared/img/o.gif" width="590" height="2" alt="Skip to main content" title="" border="0" /></a></td>
<td class="tbsh"><a href="/text_only.stm"><img src="http://newsimg.bbc.co.uk/shared/img/o.gif" width="1" height="2" alt="Text Only version of this page" title="" border="0" /></a></td>
</tr>

drbrain

9:18 pm on Sep 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Indicates that the table cell can be styled with a CSS rule targeting the ".tdsh" selector, or can be used as part of a selector to style a sibling or descendent element.

domoftheuk

10:50 am on Sep 23, 2004 (gmt 0)

10+ Year Member



Thank You

Sounds Good and very useful just what I need

ox4dboy

4:19 pm on Sep 26, 2004 (gmt 0)

10+ Year Member



Take a look at the W3C site, it will explain all of this:
[w3c.org...]

Take a look at the right column links.

<td class="whatever">...</td> is just an example of what can be done. Classes can be aplied to just about anything. In fact, you don't even need to use <td> tags anymore, thanks to CSS. CSS allows tou to replace <table> <td> <tr> etc., but tables do still have their place.

domoftheuk

6:13 pm on Sep 26, 2004 (gmt 0)

10+ Year Member



Thank You ox4dboy