23 users online (1 members and 22 guests)  


  Results 1 to 5 of 5

Related

  1. Replies: 1
  2. Problem in tags    Forum: PHP Forum
    Replies: 8
  3. META tags    Forum: HTML Forum
    Replies: 6
  4. Meta tags    Forum: HTML Forum
    Replies: 3
  5. Table tags    Forum: HTML Forum
    Replies: 1
  1. #1
    Renata's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2002
    Posts
    2

    Question Tags????????????

    I have just begun to learn js. I have basic html knowledge, but what do the <td> and <tr> tags stand for. It's almost definately something i've missed, but cannot find any specific reference to them, i just wanna know what they mean. please help! xcheers

  2. #2
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    <TR><TD> are the row and column tags within <TABLE ...>s.

    Am not sure of this, not having done much "original" <SCRIPT ...> coding myself, but it appears they are used within SCRIPTs when defining a <TABLE ...> that does or does not appear on a web page depending upon the occurrence of some other event.


    Someone else with more knowledge should pop-in here with more accurate information.

  3. #3
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Yup

    Thats right, <td> is a table cell. Cells have content in them. <tr> is a table row. Rows contain table cells.

    <tr><td>I love Badgers</td><td>As do I</td></tr>

    The only relevance they have to any kind of scripting is the same as any other structural html tag. You can use a script to write them, but apart from that, no other meaning within scripts.

    Great tutorial on tables starts here -

    http://www.ahfb2000.com/htmltables.php
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  4. #4
    Renata's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2002
    Posts
    2

    thnx

    I knew it was something to do with tables, thankyou for confirming this for me.

    Ren x

  5. #5
    amit_vadnagr's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Feb 2002
    Posts
    26

    <tr> & <td>

    <tr> stands for "table row" and <td> stand for "table data".
    <tr> defines a row in table, <td> defines the content data of each cell in a raw.

    tag set makes up like this,

    <table>
    <tr>
    <td>
    this is data for first cell in a raw.
    </td>
    </tr>
    </table>
    Regards,



Tags for this Thread