HTML Tables:
HTML Syntax -
***
Header 1 |
Header 2 |
Header 3 |
Cell 1 |
Cell 2 |
Cell 3 |
Cell 1 |
Cell 2 |
Cell 3 |
Cell 1 |
Cell 2 |
Cell 3 |
- Creates the table
- Table Row
| - Table Cell
- Table Body Semantic Element to differentiate between header and non-header cells
- Table Header
| - Table Header Cells
***
CSS Syntax -
***
table {
width: 100%;
}
td {
border: 1px solid #333;
padding: 15px;
}
td - Styles the cells
table - Styles the table
[convert to markdown and add image from lesson]