LoginSignup
0
0

rails app データを表データ(二次元)で表示したい

Posted at

結論

tableタグを使う。

html.
<table> ここから表データ(二次元)で表示するよ
  <thead>表データの頭部部についての設定はここからだよ
   <tr> ここから表データの頭部分の表示についての設定範囲だよ
     <th>            </th>
     </tr>
 </thead>
 <tbody># ここから表の中身部分だよ
   <tr>
     <th>
     <td>     </td># 実際に表示される中身の部分
   </tr>
 </tbody>
</table>


table : 表
thead = table head の略
tr = track : 線路、通り道、区切られた道
th = table head : 表データの頭部分
tbody = table bodyの略

具体例

一旦ここまで

0
0
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
0
0