The table tags have some attributes to give it a format.I made a list for you with all of them and their explanation :
-Tag: <table>
"border":It will create a border around our cells and around all the table.
"align":Aligns our table in relation to the object around.For example, imagine you've got a text and the table is on it's left side.If you know type align="right", it will appear on the right of the text.
"background":Allows us to place a background picture.
Example:<table background="image1.jpg">
"bgcolor":Gives the table a background color, using hexadecimal code system.
Example:<table bgcolor="#FF0000"> In this case we use red, look at the color codes.
"bordercolor":Draws a border with the color you choose in hexadecimal code system.
Example:<table bordercolor"#0000FF">
"height":We can adjust the height of our table defining it in pixels or percentage.
Example:<table height="100px">
"width":The same as the previous one for the anchor of the table.
"cellpadding": Defines the space between the border of a cell and it's content in pixels.
"cellspacing":Defines the space between the borders of your table.
Now that you know all this about tables, why don't try creating your own table with some colors, header cells or maybe a background image?Remember that you can create a webpage with your simple notepad or wordpad.Simply save it as .html when finished and right click on it to open it in any wished browser.You can also download a free html editor or a trial version of coffecup or Dreamweaver.
No comments:
Post a Comment