lt tr gt A table is divided into rows with the lt tr gt tag lttdgt Each row is divided into data cells with the lttdgt tag td stands for table data and holds the content of a data cell A lttdgt tag can contain text links images lists forms other tables etc ID: 779106
Download The PPT/PDF document "Tables <table> Tables are defined ..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Tables
Slide2<table>
Tables are defined with the <table> tag.
Slide3<
tr
>
A table is divided into rows (with the <
tr
> tag)
Slide4<td>
Each row is divided into data cells (with the <td> tag).
td stands for "table data," and holds the content of a data cell. A <td> tag can contain text, links, images, lists, forms, other tables, etc.
Slide5One row, one column
<table border="1">
<
tr
>
<td>100</td>
</
tr
>
</table>
Slide6One row, three columns
<table border="1">
<
tr
>
<td>100</td>
<td>200</td>
<td>300</td>
</
tr
>
</table>
Slide7Two rows, three columns
<table border="1">
<
tr
>
<td>100</td>
<td>200</td>
<td>300</td>
</
tr
>
<
tr
>
<td>400</td>
<td>500</td> <td>600</td></tr></table>
Slide8Write the HTML code for a table with
3 rows, 2 columns. Include 3 friends names and their grade in the table.
<table border = “2”>
<
tr
>
<
td>Anya Burns</
td>
<
td>Senior</
td>
</
tr
><tr> <td>Adam Harless</td>
<
td>Junior</
td>
</
tr
>
<
tr
>
<td>Lauren Bennett</td>
<td>Freshman</td>
</
tr
>
</table>
Slide9<
th
>
Header information in a table are defined with the <
th
> tag.
All major browsers will display the text in the <
th
> element as bold and centered.
Slide10Table Headers
<table border="1">
<
tr
>
<
th
>Name</
th
> <th>Telephone</
th
>
<th
>Telephone</
th
></tr><tr> <td>Bill Gates</td> <td>555 77 854</td> <td>555 77 855</td>
</
tr
>
</table>