`) hold header cells (`| `) and data cells (` | `). [S1]
## π§ ν΅μ¬ κ°λ
(Core concepts)
- **`` is the container** for the entire table. [S1]
- **Rows are ``** ("table row") β each row starts with ` ` and ends with ` `. [S1]
- **Data cells are ``** ("table data") β everything between ` | ` and ` | ` is the content of a table cell. [S1]
- **Header cells are ``** ("table header") β used for headings; by default the text is **bold and centered**, but this can be changed with CSS. [S1]
- **Cells can hold anything** β a table cell can contain all sorts of HTML elements: text, images, lists, links, other tables, etc. [S1]
## π§© μΆμΆλ ν¨ν΄ (Extracted patterns)
- **Row-then-cell pattern** β a table is built row by row; inside each ` | ` you place one cell (`| ` or ` | `) per column. [S1]
- **Header row pattern** β the first ` | ` typically uses `| ` cells to label each column. [S1]
- **Grouping pattern** β ``, ` | `, and `` group the header, body, and footer content; ``/`` describe column-level formatting; `` titles the table. [S1]
## π μΈλΆ λ΄μ© (Details)
**HTML Tables.** HTML tables allow web developers to arrange data into rows and columns. [S1]
A basic table with a header row and two data rows:
```html
| Company |
Contact |
Country |
| Alfreds Futterkiste |
Maria Anders |
Germany |
| Centro comercial Moctezuma |
Francisco Chang |
Mexico |
```
**Table Cells.** Each table cell is defined by a `` and a ` | ` tag. `td` stands for table data. Everything between `` and ` | ` is the content of a table cell. [S1]
```html
```
A table cell can contain all sorts of HTML elements: text, images, lists, links, other tables, etc. [S1]
**Table Rows.** Each table row starts with a `` and ends with a ` ` tag. `tr` stands for table row. You can have as many rows as you like in a table; just make sure the number of cells is the same in each row. [S1]
```html
| Emil |
Tobias |
Linus |
| 16 |
14 |
10 |
```
**Table Headers.** Sometimes you want your cells to be table header cells. In those cases use the `` tag instead of the ` | ` tag. `th` stands for table header. By default, the text in ` | ` elements are bold and centered, but you can change that with CSS. [S1]
```html
| Person 1 |
Person 2 |
Person 3 |
| Emil |
Tobias |
Linus |
| 16 |
14 |
10 |
```
**HTML Table Tags.** [S1]
| Tag | Description |
|---|---|
| `` | Defines a table |
| `| ` | Defines a header cell in a table |
| ` | ` | Defines a row in a table |
| `| ` | Defines a cell in a table |
| `` | Defines a table caption |
| `` | Specifies a group of one or more columns in a table for formatting |
| `` | Specifies column properties for each column within a `` element |
| `` | Groups the header content in a table |
| ` | ` | Groups the body content in a table |
| `` | Groups the footer content in a table |
## π οΈ μ μ© μ¬λ‘ (Applied in summary)
The "Company / Contact / Country" example above is the canonical applied example of a complete data table with a header row. No external project/commit applications found in the source.
## π» μ½λ ν¨ν΄ (Code patterns)
Minimal table (HTML):
```html
| Header 1 |
Header 2 |
| Cell 1 |
Cell 2 |
```
Header cell vs. data cell:
```html
Header text (bold, centered) |
Data text |
```
## βοΈ λͺ¨μ λ° μ
λ°μ΄νΈ (Contradictions & updates)
No contradictions found in the source. [S1]
## β
κ²μ¦ μν λ° μ λ’°λ
- **μν:** draft
- **κ²μ¦ λ¨κ³:** conceptual (μ€μ μ μ© μ¬λ‘ λ°κ²¬ μ applied/validatedλ‘ μΉκ²© κ°λ₯)
- **μΆμ² μ λ’°λ:** B (W3Schools β widely used educational reference, not a primary standards body)
- **μ λ’° μ μ:** 0.90
- **μ€λ³΅ κ²μ¬ κ²°κ³Ό:** μ κ· μμ± (New discovery)
## π μ§μ κ·Έλν (Knowledge Graph)
- **μμ/루νΈ:** [[HTML Tutorial]]
- **κ΄λ ¨ κ°λ
:** [[HTML Lists]], [[HTML Block and Inline]], [[HTML Div]], [[HTML Elements]]
- **μ°Έμ‘° λ§₯λ½:** Referenced whenever tabular data must be presented in rows and columns on a web page.
## π μΆμ² (Sources)
- [S1] W3Schools β HTML Tables β https://www.w3schools.com/html/html_tables.asp
## π λ³κ²½ μ΄λ ₯ (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "HTML Tables" page (Astra wiki-curation, P-Reinforce v3.1 format).
| |