HTML M.2 NTUN 281112

posted on 12 Dec 2012 09:02 by kagaminemew
HTML Tables
Tables are defined with the <table> tag.

A table is divided into rows (with the <tr> tag), and 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.
 
<table border="1">
<tr>
<td>row 1,cell 1</td>
<td>row 1,cell 2</td>
</tr>
<tr>
<td>row 2,cell 1</td>
<td>row 2,cell 2</td>
</tr>
<table>

HTML Table Headers 

Header information in a table are defined with the <th> tag.
All major browsers will display the text in the <th> elements as bold and centeres.

<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>row 2,cell 1</td>
<td>row 2,cell 2</td>
</tr>
<table>
 
 

Comment

Comment:

Tweet

みう太ん View my profile

Instagram