This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:web_development:tables:content [2021/12/07 13:55] mag [Borders] |
en:web_development:tables:content [2023/08/16 09:33] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Web Development Lesson | + | ====== Web Development Lesson |
| ===== Table Content and Structure ===== | ===== Table Content and Structure ===== | ||
| ==== Objective ==== | ==== Objective ==== | ||
| Line 5: | Line 5: | ||
| ==== Setup ==== | ==== Setup ==== | ||
| - | * We'll start from scratch for this lesson. | + | * Create a file in Visual Studio Code in your folder (not under 'project' |
| - | * Delete everything from the HTML, Javascript | + | * Type ‘html’ |
| ==== Structure ==== | ==== Structure ==== | ||
| Line 14: | Line 14: | ||
| | David | Ospina Ramírez | Colombia | 33 | Portero | | | David | Ospina Ramírez | Colombia | 33 | Portero | | ||
| - | * To start, add a < | + | * To start, add a < |
| < | < | ||
| Line 83: | Line 83: | ||
| ==== Borders ==== | ==== Borders ==== | ||
| - | * Add the following CSS code to display the border. | + | * To see the structure of the table directly, we need to add borders using CSS. |
| + | * Link ' | ||
| + | * Create ' | ||
| < | < | ||
| border-width: | border-width: | ||
| Line 92: | Line 94: | ||
| * For instance, you can see that in data cells, text is aligned to the left by default, while in header cells, text is center aligned. | * For instance, you can see that in data cells, text is aligned to the left by default, while in header cells, text is center aligned. | ||
| * You will also notice that the left-aligned text is right on the edge of the cell, which is is harder to read. We'll fix this in the next section. | * You will also notice that the left-aligned text is right on the edge of the cell, which is is harder to read. We'll fix this in the next section. | ||
| + | |||
| + | ==== Final Code ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| [[en: | [[en: | ||