Solved

What does <tr> and <td>  mean

Posted on 2006-07-10
4
9,272 Views
Last Modified: 2008-02-01
I am brand new to this:

What does the <tr> and <td> mean in HTML

Thanks and Cheers!
ahammar
0
Comment
Question by:ahammar
  • 2
4 Comments
 
LVL 12

Assisted Solution

by:UnexplainedWays
UnexplainedWays earned 250 total points
ID: 17078543
0
 
LVL 12

Expert Comment

by:UnexplainedWays
ID: 17078546
This one might be more helpfull.
http://www.w3schools.com/tags/ref_byfunc.asp
0
 
LVL 12

Accepted Solution

by:
jessegivy earned 250 total points
ID: 17078554
<tr> stands for "table row" and represents a horizontal row in a table, which contains cells

<td> stands for "table data" but really represents a single cell within a table row.

An important distinction is that you can't put any data directly inside a row, you must enclose it within a <td>

Example:

<table>
   <tr>
      <td>row 1 cell 1</td>
      <td>row 1 cell 2</td>
      <td>row 1 cell 3</td>
   </tr>
   <tr>
      <td>row 2 cell 1</td>
      <td>row 2 cell 2</td>
      <td>row 2 cell 3</td>
   </tr>
</table>

The above table will produce output that looks something like this:

row 1 cell 1   row 1 cell 2   row 1 cell 3
row 2 cell 1   row 2 cell 2   row 2 cell 3

Cheers,

Jesse
0
 
LVL 23

Author Comment

by:ahammar
ID: 17078636
Thanks to both of you.  This helps me out immensly!  I think I understand a great deal more now from Jesse's example. I will accept Jesse's comment as answer but I will split the points between both of you.  I also like the page of commands.

Thanks and Cheers!
ahammar
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question