join: new@juude



get alerts for new articles






CLOSE WINDOW

join: new@juude



get alerts for new articles






CLOSE WINDOW
html5

Tables - Tags

Table basics

<table></table>(w3c)
global attributes & border
Atable has an opening and closing tag


<tr></tr>
represent a table row which is the container for the cells
permitted parent table, thead, tfoot, tbody



<th></th>
Table headings an individual cell  can include titles of rows and/or columns
permitted parent tr
Attribute: rowspan and colspan(see below)



<td></td>
td, table data  is an individual cell
permitted parent tr
Attribute: rowspan and colspan
<td colspan="number">


A very basic table with two columns


<table>open table
<tr> open row
<th> title</th><th> title</th> titles/topics for two columns below
</tr> close row
<tr> open row
<td> data</td>
<td>data</td> first row of information
</tr> close row
<tr> open row
<td> data</td><td>data</td>secondrow of information
</tr> close row
</table> close table

This is the table for the code above
Title Title
data data
data data