Files
2nd/10_Wiki/Topic_Programming/Topic_HTML/HTML_Tables.md
T
Antigravity Agent e9cbf23ab5 docs(10_Wiki): Dev 폴더 누락분 반영 — Topic_Programming으로 통합
이전 재구성 작업에서 Dev/ 폴더가 누락되었던 것을 반영.

- Dev/Topic_Programming(중첩 폴더, 78개)은 Dev 자체 최상위 폴더들
  (Architecture/Conventions/Engineering_Intelligence 등)과 완전 중복이라 제거.
- Dev 최상위 엔지니어링 지식 폴더(Architecture/Conventions/Engineering_Intelligence/
  Failure_Library/Generalized_Principles/Language/Pattern_Catalog/Platform_Guides/
  Subsystems, 77개)는 이미 Topic_Programming/Topic_Programming에 더 최신 버전이
  존재해 중복 제거(고유 콘텐츠 1개는 예외 처리하여 이동 보존).
- Dev의 W3Schools 언어 튜토리얼 폴더(Topic_C/CPP/CSS/CSharp/HOWTO/HTML/Java/
  JavaScript/PHP/Python/SQL/W3CSS, 1201개)는 전부 Topic_Programming 하위로 이동.
- 에이전트 운영 상태(.astra/docs)는 그대로 유지, 콘텐츠 폴더만 정리.
- Topic_Programming 최종 문서 수: 2784 → 3985.
2026-07-05 00:39:13 +09:00

5.6 KiB

id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
id title category status verification_status canonical_id aliases duplicate_of source_trust_level confidence_score created_at updated_at review_reason merge_history tags raw_sources applied_in github_commit
html-tables HTML Tables Frontend draft conceptual
HTML table
table element
tr td th
data table HTML
tabular data
B 0.90 2026-06-23 2026-06-23
html
web
frontend
w3schools
tables
https://www.w3schools.com/html/html_tables.asp

HTML Tables

🎯 한 줄 통찰 (One-line insight)

HTML tables let web developers arrange data into rows and columns using a <table> container whose rows (<tr>) hold header cells (<th>) and data cells (<td>). [S1]

🧠 핵심 개념 (Core concepts)

  • <table> is the container for the entire table. [S1]
  • Rows are <tr> ("table row") — each row starts with <tr> and ends with </tr>. [S1]
  • Data cells are <td> ("table data") — everything between <td> and </td> is the content of a table cell. [S1]
  • Header cells are <th> ("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 <tr> you place one cell (<td> or <th>) per column. [S1]
  • Header row pattern — the first <tr> typically uses <th> cells to label each column. [S1]
  • Grouping pattern<thead>, <tbody>, and <tfoot> group the header, body, and footer content; <colgroup>/<col> describe column-level formatting; <caption> 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:

<table>
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Germany</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
</table>

Table Cells. Each table cell is defined by a <td> and a </td> tag. td stands for table data. Everything between <td> and </td> is the content of a table cell. [S1]

<table>
  <tr>
    <td>Emil</td>
    <td>Tobias</td>
    <td>Linus</td>
  </tr>
</table>

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 <tr> and ends with a </tr> 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]

<table>
  <tr>
    <td>Emil</td>
    <td>Tobias</td>
    <td>Linus</td>
  </tr>
  <tr>
    <td>16</td>
    <td>14</td>
    <td>10</td>
  </tr>
</table>

Table Headers. Sometimes you want your cells to be table header cells. In those cases use the <th> tag instead of the <td> tag. th stands for table header. By default, the text in <th> elements are bold and centered, but you can change that with CSS. [S1]

<table>
  <tr>
    <th>Person 1</th>
    <th>Person 2</th>
    <th>Person 3</th>
  </tr>
  <tr>
    <td>Emil</td>
    <td>Tobias</td>
    <td>Linus</td>
  </tr>
  <tr>
    <td>16</td>
    <td>14</td>
    <td>10</td>
  </tr>
</table>

HTML Table Tags. [S1]

Tag Description
<table> Defines a table
<th> Defines a header cell in a table
<tr> Defines a row in a table
<td> Defines a cell in a table
<caption> Defines a table caption
<colgroup> Specifies a group of one or more columns in a table for formatting
<col> Specifies column properties for each column within a <colgroup> element
<thead> Groups the header content in a table
<tbody> Groups the body content in a table
<tfoot> 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):

<table>
  <tr>
    <th>Header 1</th>
    <th>Header 2</th>
  </tr>
  <tr>
    <td>Cell 1</td>
    <td>Cell 2</td>
  </tr>
</table>

Header cell vs. data cell:

<th>Header text (bold, centered)</th>
<td>Data text</td>

⚖️ 모순 및 업데이트 (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)

📚 출처 (Sources)

📝 변경 이력 (Change history)

  • 2026-06-23: Initial draft synthesized from the W3Schools "HTML Tables" page (Astra wiki-curation, P-Reinforce v3.1 format).