We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is a Table Row?

By Jessica Reed
Updated: May 16, 2024
Views: 18,286
Share

A table row runs horizontally in a line across a table and is normally made up of several boxes with information inside. When you draw a table on a piece of paper, you are creating columns and rows. Each horizontal line of boxes is a different table row. Often, the row at the top of the table is used to create headers, which tell the reader what information can be found in the boxes below it, also known as the column. For example, the first three boxes in the first row of a table in a teacher’s attendance book might read "Student's Name," "Present," and "Absent."

Table rows are commonly used in HTML to create tables and to format a web page. The HTML tag for a table row is <tr>. Within each row, the tag <td> must be added for each new box the user wants to create in that row. A new table row must be created to move down to the next line and start a set of boxes below the first. This example shows a table with three table rows and three table columns.

Student Attendance
Student’s Name Present Absent
Lily X O
Mark X O
Bill O X

In the past, many web designers used hidden tables to layout their website. They could make the table invisible and put everything from the text to the images in its own separate part of the table. This kept things from moving around or overlapping. While it's still possible to use tables to design a web page, it is quickly being replaced by the use of CSS to format a page's layout.

Table rows can contain boxes of different lengths than the row before or after it. One table row might only have two boxes, one large and one small, while the row below it has three small boxes. The rows should still be the same length total, but the boxes may not match.

Programs like Microsoft Excel use rows and columns to create spreadsheets. Often, the user will alter the length of the boxes in a row to give himself room to type in the necessary headings. When changing the length of a box, it changes the length of the entire column below it to keep it aligned. Users also have the option to merge rows vertically, causing one box to take up more than one line and giving more room for information. This does not alter any other boxes on the screen.

Share
EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
By Oceana — On May 18, 2012

I had to use tables sometimes when I worked as a graphic designer for a newspaper. Sometimes, car dealers would want to run ads that showed price lists on some of their cheaper vehicles. I had to use several table rows to get all the information entered.

The first column would contain the year and make of the vehicle. The next would show the stock number, then would come the MSRP, and finally, the dealer's price. Each vehicle had its own row of information.

Luckily, the computer program I was using let me designate tabs for each row and column, so if some needed to be bigger than others, they could. Sometimes, the name of a vehicle was so long that it had to continue down to the next row.

By orangey03 — On May 17, 2012

@Perdido – That is an awesome way to keep this straight. I probably could have benefited from that information as a child.

I learned how to distinguish rows from columns by using an atlas in 4th grade. The teacher gave each of us one, and then she would give us quizzes based on the use of rows and columns. She would tell us to write down what city was located on Row A, Column 4.

The first time, I got my rows and columns backward, and I flunked the quiz. However, after this incident, I always remembered which was which.

By Perdido — On May 17, 2012

In school, I was always getting table rows confused with table columns. In my mind, I could not relate one to horizontal and one to vertical.

Finally, my teacher told me a good way to remember which was which. She said that when I thought of columns, I should envision the tall columns on ancient buildings. This helped me relate columns to being vertical instead of horizontal.

She also said that when I thought of rows, I should picture a farmer dragging a hoe across the soil. He would be going across rather than up and down, so I could relate the row with something horizontal.

Share
https://www.easytechjunkie.com/what-is-a-table-row.htm
Copy this link
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.