--- id: html-tables title: "HTML Tables" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["HTML table", "table element", "tr td th", "data table HTML", "tabular data"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.90 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["html", "web", "frontend", "w3schools", "tables"] raw_sources: ["https://www.w3schools.com/html/html_tables.asp"] applied_in: [] github_commit: "" --- # [[HTML Tables]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) HTML tables let web developers arrange data into rows and columns using a `` container whose rows (``) hold header cells (`` 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
`) 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 `` is the content of a table cell. [S1] - **Header cells are `` you place one cell (`` typically uses ``, ``, and `` group the header, body, and footer content; ``/`` describe column-level formatting; `` tag. `td` stands for table data. Everything between `` is the content of a table cell. [S1] ```html
`** ("table data") β€” everything between `` and ``** ("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 `
` or ``) per column. [S1] - **Header row pattern** β€” the first `
` cells to label each column. [S1] - **Grouping pattern** β€” `
` 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 `` and `
Emil Tobias Linus
``` 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 `
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 row in a table | | `` | 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
` | Defines a header cell in a table | | `
` | Defines a cell in a table | | `
` | Defines a table caption | | `
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).