Solved

What does <tr> and <td>  mean

Posted on 2006-07-10
4
8,615 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now