Currently Empty: $0.00
Course Preview
0/4
Introduction to HTML
0/7
Getting Started with HTML5
0/6
Deep into HTML5
0/12
Introduction to CSS
0/7
Deep Into CSS
0/8
Using Browser Developer Tools
0/2
Building Projects: Part 1 – for HTML & CSS
0/4
Building an NFT Website (HTML % CSS)
0/10
Making NFT Website Responsive (HTML % CSS)
0/7
Building an NFT Website (JavaScript)
0/4
Introduction to Git
0/1
Introduction To Javascript
0/8
Deep Into JavaScript
0/8
Advancing with JavaScript
0/6
JavaScript Interactivity with DOM
0/6
Building Project: Part 2 – for HTML, CSS and JavaScript
0/4
Deep Into Git and Github
0/2
Final Certification Examination
0/3
HTML TABLE
There may be times when you’ll wish to display a table of data on your website. Let’s get started by converting the table below to HTML.
If you’ve never dealt with tabular data before, it’s helpful to understand that a table is made up of rows and columns.
Example
So how do we apply these concepts to HTML? First, we need to declare an HTML table by using the
<table> tagÂ
<table></table>
Â
To add a row to our table, use the
<tr>Â
<table>
<tr></tr>
</table>
Â
To add individual pieces of data (the cells) corresponding to the columns, use the
<td> tag, which means table data.Â
To indicate that a cell is part of the header, use the
<th> tag instead of <td>Â
<table>
<tr>
<td>first 1</td>
<td>second 2</td>
<td>third 3</td>
<td>fourth 4 </td>
</tr>
</table>
Now let us combine this to make a full table.
Â

HTML Table Tags
| 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 |
See the complete list here.
