Tables are a super cool concept in HTML. The work using some key HTML tags.
Tag | Format | Description |
---|---|---|
Table |
<Table> |
This tag is used to define the overall table. It does encapsulate the entire table |
Head |
<thead> |
This is used to define the header row of the table. usually it contains a lot of elements that have this tag in it: <th> |
Body |
<tbody> |
This tag is used to delimit the actual body of the table where you would typically put the data. |
Headers |
<th> |
This is where in HTML you put the labels on the top of the table. if you are maing an horizontal table. |
Raws |
<tr> |
This HTML tag is used to create the rows in the table. You can have as many as you want. then you can put the data ine ach row using the next tag. |
Data |
<td> |
This is where you actually put in the data. The rest is really just for formatting. |