1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

table.html

Last updated at Posted at 2019-10-07

th と td の違い

  • tr
    • 列を表すもの、<tr>タグで書かれたものは横一列に表示される。
  • th
    • table headの略。見出しを書くときに使う。デフォで太文字に。。
  • td
    • table dataの略。表の内容を記載する際はtdタグを使用する。通常の文章として表示される。自動的に左揃えになる。
<table border="1">
    <thead>
      <tr>
        <th>氏名</th>
        <th>年齢</th>
        <th>趣味</th>
        <th>メアド</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>りんご</td>
        <td>22</td>
        <td>カメラ</td>
        <td>xxxxx@yahoo.co.jp</td>
      </tr>
      <tr>
        <td>みかん</td>
        <td>32</td>
        <td>読書、音楽鑑賞</td>
        <td>xxxx@gmail.com
      </tr>
      <tr>
        <td>いも</td>
        <td>43</td>
        <td>瞑想</td>
        <td>xxxxx@yahoo.co.jp</td>
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?