committed by
Randell Dawson
parent
f5ce9f8ddc
commit
ba57b384b0
@ -3,11 +3,11 @@ title: Tables
|
||||
---
|
||||
### Defining an HTML Table
|
||||
|
||||
An HTML table is defined with the <table> tag.
|
||||
An HTML table is defined with the `<table>` tag.
|
||||
|
||||
Each table row is defined with the <tr> tag. Inside a row there may be table headers or table data.
|
||||
Each table row is defined with the `<tr>` tag. Inside a row there may be table headers or table data.
|
||||
|
||||
* A table header is defined with the <th> tag. By default, table headings are bold and centered.
|
||||
* A table header is defined with the `<th>` tag. By default, table headings are bold and centered.
|
||||
* A table data/cell is defined with the <td> tag.
|
||||
|
||||
A more complex HTML table may also include `<caption>`, `<col>`, `<colgroup>`, `<thead>`, `<tfoot>`, and `<tbody>` elements in it.
|
||||
|
Reference in New Issue
Block a user