This is space 1 | This is space 2 |
This is space 3 | This is space 4 |
Here’s what this means:
* (table border=”1″) is the start of the table. The border=”1″ says how thick the border on the table will be. If you don’t include anything there, you won’t be able to see a border for the table.
* (tr) and (/tr) indicates the beginning and ending of a row on the table. You can add more rows to a table by just adding more (tr) (/tr) code.
* (td) and (/td) indicates the beginning and end of a single cell. See how the (td) markers are inside the (tr) markers? Anything you write between the (td) and (/td) will be the text you see in the spaces. You can also put pictures in these spaces (that’s what I did with my mini reviews).
So, that’s the basic code for the table. You can do a lot with html tables once you get the hang of it. You can add colors, adjust the borders or change formatting inside the table cells. I’m no html expert, so I usually just putz around with different attributes (the border=”1″ is an attribute) until the table looks like I want it to.
OBS: erstat runde parenteser med kantede.
Ingen kommentarer:
Send en kommentar