Download presentation
Presentation is loading. Please wait.
Published bySuhendra Tanuwidjaja Modified over 6 years ago
1
Creating Tables Steps for creating a Table Important Facts about Table
Attributes for Table tag Attributes for Table Row <tr> tag Attributes for Table data <td> tag
2
Steps for creating a Table
Create matching <table> and </table> Count up the numbers of rows you wish to have in your table and create a pair of the <tr> and </tr> tags for each row between the table tag of step (1). For each row individually, count up the number of cells and place <td> and </td> tag within each row of step (2). Place the data within the appropriate cells between the corresponding <td> & </td> tag.
3
Important Facts Cells will always grow big enough to accommodate the data in cell. When you set width and/or height of a table, you are actually setting a minimum of width and/or height. The widest cell in a column determines the width of all cell in that column The tallest cell in a row determines the height of all cells in that row.
4
Attributes for Table tag
align background bgcolor border bordercolor cellpadding cellspacing width height
5
Attributes for <tr>…</tr> tag
align valign bgcolor
6
Attributes for <td>…</td> tag
align valign background bgcolor width height rowspan colspan
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.