(Legacy) HTML: Tables: Multiple Lines

Last Updated

This article is based on legacy software.

NOTE: The HTML pages are out-of-date and will not be updated.

When the text in a single table cell exceeds a few words, a line break may improve the appearance and readability of the table. The line break code allows data to be split into multiple lines. Place the line break code <BR> within the text at the point(s) you want the line to break. Notice in the examples below that the line break code can be used in data cells as well as in headers.

Remember that the user of your document has final control over font and size. Some line break codes, though appropriate with your preference settings, may be inappropriate under other conditions.

Table with Multiple Lines in a Cell

MondayWednesdayFridayGo to the store
and buy groceries
and stuffClassClass<TABLE BORDER=1>
<TR>
<TH>Monday</TH>
<TH>Wednesday</TH>
<TH>Friday</TH>
</TR>
<TR>
<TD>Go to the store<BR>and buy groceries<BR>and stuff</TD>
<TD>Class</TD>
<TD>Class</TD>
</TR>
</TABLE>

Table with Multiple Lines in a Header

Monday
June 1stWednesday
June 3rdFriday
June 5thGo to the storeClassClass<TABLE BORDER=1>
<TR>
<TH>Monday<BR>June 1st</TH>
<TH>Wednesday<BR>June 3rd</TH>
<TH>Friday<BR>June 5th</TH>
</TR>
<TR>
<TD>Go to the store</TD>
<TD>Class</TD>
<TD>Class</TD>
</TR>
</TABLE>