目次
表を作るときの冒頭文
table
<table>表を入れる(tr、th、td)</table>
枠をつける
border
<table border="1" >
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ1.jpg)
数字が大きいと太くなるにゃ。
枠に色をつける
bordercolor
<table border="1" bordercolor="red" >
行を足す
tr
Table Row(行)の略。
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ2.jpg)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ2.jpg)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ2.jpg)
1行増やしたいたびに記入にゃ。
一番上の段、見出しを書く
th
Table Header(見出し)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ1.jpg)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ1.jpg)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ1.jpg)
一番上にゃ。横に並ぶにゃ。
<tr>
<th>お名前</th>
<th>特技</th>
</tr>
中身を記入する
td
Table Data(データ)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ2.jpg)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ2.jpg)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ2.jpg)
横に並んでいくにゃ。
<tr>
<td>にゃんこ2</td>
<td>よく寝る</td>
</tr>
枠内背景に色をつける
bgcolor
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ1.jpg)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ1.jpg)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ1.jpg)
全体、行だけ、ひと枠だけ、指定できるにゃ。
<table border="1" bgcolor="yellow">
<tr>
<td>にゃんこ2</td>
<td>よく寝る</td>
</tr>
<tr>
<td bgcolor="Pink">にゃんこ1</td>
<td>よく食べる</td>
</tr>
<tr bgcolor="lightgreen">
<td>にゃんこ2</td>
<td>よく寝る</td>
</tr>
記入例
<table border="3" bordercolor="Blue" bgcolor="Yellow">
<tr bgcolor="lightgreen">
<th>名前</th>
<th>特技</th>
</tr>
<tr>
<td bgcolor="Pink">にゃんこ1</td>
<td>よく食べる</td>
</tr>
<tr>
<td>にゃんこ2</td>
<td>よく寝る</td>
</tr>
</table>
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ2.jpg)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ2.jpg)
![](https://nyancode.net/wp-content/uploads/2022/03/にゃんこ2.jpg)
枠線:太さ3、枠線:ブルー、全体背景:黄色、見出し背景:緑、ひと枠:ピンクにしたにゃ。