1. I've started a massive SPAM purge, any accounts that have spammed are being removed, also for a short period new user signups are disallowed until the SPAM cleaning is finished.

Td and TR problem ?

Discussion in '(X)HTML / CSS' started by Indianseo, Jul 20, 2010.

  1. Indianseo

    Indianseo Banned

    Joined:
    Jul 15, 2010
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    Hi,



    i cant understand <td> and <TR> funda In HTML who will help me for solve my this problem !



    Need you help ?
    Loading...
  2. SeoKungFu

    SeoKungFu Active Member

    Joined:
    Jul 9, 2009
    Messages:
    693
    Likes Received:
    98
    Trophy Points:
    28
    I saw you were asking about tables in HTML in the other thread, and this one is related.
    Apart from sending you to read the manuals, which you generally should do, the usage of the table, tr and td tags is simple:
    and <table> </table> make opening and closing tags for the whole tables.
    Inside of it you should use and closing and opening tags for table rows.
    And inside of each table rows ( tr's ) you should use table division ( not sure if this is the exact meaning ) - for opening and for closing tag.

    Example:

    <table>
    <tr>
    <td>first row first column</td>
    <td>second column first row</td>
    </tr>
    <tr>
    <td>first column second row</td>
    <td>second column second row</td>
    </tr>
    </table>

    What is most important is to keep track of tag nesting - opening and closing ones.
    1 person likes this.
  3. Gurmeet

    Gurmeet Member

    Joined:
    Feb 8, 2013
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    Gender:
    Male
    Location:
    Lucknow
    <tr> is used for defining the row in a table.
    <td> is used for defining the column in a table.

    Example-

    <table>
    <tr> <!--First row of the table-->
    <td></td> <!--First column of the first row-->
    <td></td> <!--Second column of the first row-->
    </tr>

    <tr> <!--Second row of the table-->
    <td></td> <!--First column of the second row-->
    <td></td> <!--Second column of the second row-->
    </tr>
    </table>
  4. mtrick

    mtrick Member

    Joined:
    Nov 17, 2011
    Messages:
    164
    Likes Received:
    4
    Trophy Points:
    18
    Gender:
    Male
    <table>
    <tr>
    <td>first row first column</td>
    <td>second column first row</td>
    </tr>
    <tr>
    <td>first column second row</td>
    <td>second column second row</td>
    </tr>
    </table>
  5. adam_parker

    adam_parker New Member

    Joined:
    Nov 28, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Location:
    Reno, Nevada
    <tr> is for table row
    <td> is for column

    <table border="1">
    <tr>
    <td>row 1, cell 1</td>
    <td>row 1, cell 2</td>
    </tr>
    <tr>
    <td>row 2, cell 1</td>
    <td>row 2, cell 2</td>
    </tr>
    </table>
  6. irfan khan

    irfan khan Member

    Joined:
    Jan 6, 2014
    Messages:
    53
    Likes Received:
    2
    Trophy Points:
    8
    Gender:
    Male
    Location:
    Pakistan
    Very useful information mention in the comments above. it has better understanding. i like it. A lot more then thanks for spending time on it and making it useful for audiences
  7. Maureen P. James

    Maureen P. James Member

    Joined:
    Jul 8, 2014
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Gender:
    Male
    Location:
    UK, london
    In HTML <tr> is used for adding row and <td> is used for adding columns.
    For example-
    <table>
    <tr>
    <td> first row first column</td>
    <td> first row second column</td>
    </tr>
    <tr>
    <td> second row first column</td>
    <td> second row second column</td>
    </tr>
    </table>
  8. jesslee

    jesslee Member

    Joined:
    Jul 8, 2014
    Messages:
    32
    Likes Received:
    1
    Trophy Points:
    8
    Gender:
    Male
    Location:
    United Kingdom
    As explained in the comments here it is clear that td and tr are different tags of HTML we used to performs distinct functions with the concept of tables. tr is used to add the row in the table and td is used to add the columns. More than one column can be added in a row.
  9. Ajay52

    Ajay52 Member

    Joined:
    Jun 23, 2014
    Messages:
    80
    Likes Received:
    2
    Trophy Points:
    8
    Gender:
    Male
    Location:
    MumbaiFlowersWorld
    Read html tutorials on internet. you get your all desire information quickly.
  10. Bharti Mahour

    Bharti Mahour Member

    Joined:
    Jul 29, 2014
    Messages:
    53
    Likes Received:
    2
    Trophy Points:
    6
    Gender:
    Female
    In my opinion
    <tr> is for table row and
    <td> is for column
  11. vinod1

    vinod1 New Member

    Joined:
    Jun 24, 2014
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Location:
    India
    <td> is used for column and <tr> is use for adding a row in the table.
  12. Joslinks

    Joslinks Member

    Joined:
    Jul 27, 2011
    Messages:
    118
    Likes Received:
    3
    Trophy Points:
    18
    Gender:
    Male
    Location:
    Chennai
    <td > tag is used to enter the table data in html, <tr> tag is used in table row tag.

Share This Page