TABLE CODES
Here are the codes that you will use for tables to make a basic table. Codes to jazz up your table will come later. Tables
are good for organizing content on a websites. Many whole webpages are designed off of tables.
This is the start of your table code.
This is a row. You can repeat this code as many times as you want, and you will give you more rows.
text goes here |
This is a column, it comes after you have done the row code. Repeat the code indefinitly, although it must be after the code above though.
This is the code you put after your td code's to end the row.
This is the ending code, it comes after all your rows and colomns, after the table is done.
EXTRA CODES
color
To add color to your tables, add the color to your table tag, or your row/ colomn tag.
example:
adding borders
To add a border to your tables, add the border code to your table tag, or your row/ colomn tag. Choose any number
example:
adding backgrounds
add background="URL" to any table, row, or colomn tag. For example:
TABLE SIZES
size with pixels
you can set your table size to a certain pixel size, so it can fit a specific image or
just be the size you want. to do this just copy the code below, change the sizes to what you want.
size with percentages
you can make the width or height of your table fit the percentage of the viewers screen so it will look that
percentage no matter what resolution they are in. just copy/paste and edit the code below.
FINISHED TABLES
Cell 1 |
Cell 2 |
Cell 3 |
Cell 4 |
the code for this table:
Cell 1 |
Cell 2 |
Cell 3 |
Cell 4 |
Cell 5 |
Cell 6 |
Cell 7 |
Cell 8 |
the code for this table:
the code for this table:
REMEMBER:
The cells in the tables will expand to any size of the content you put within it. Meaning if you put alot, you can
end up making a weblayout nicely organized with tables.
When adding background/ color codes to a table, adding the code to the tag will make all your
rows & colomns have that background. To make just a row/ colomn have it, add it to that tag.
|
|
|
|
|
|