GuideML. Tables or Boxes

1 Conversation


They Are called "Tables",as that is what they are meant to be used for, but some people call them "Boxes" as that is what they are sometimes used for,

Tables Known As BOXES

Although this is the easy kind of table, there are still a few way of doing it

The simple Box is written like this

<TABLE BORDER="4" BORDERCOLOR="gold" BGCOLOR="magenta"><TR><TD>



What ever you put in here will be in the box



And you end it with

</TD></TR></TABLE>



and that will give you This



What ever you put in here will be in the box

The "TABLE" is the opening tag, which is folowed by BORDER="4" , This is how thick the Border will be,you can miss the BORDER out, you will still get a box, but with no border.

Next is the BORDERCOLOR, like it says, its the border color.If you miss out the BORDER then you will miss this out aswell

next is the BGCOLOR, which stands for Back Ground Color and will cover every where inside the border.

next is the TR and TD, these must be put in, but we will talk about them later.

and as you can see, we have put a closing tag for every one that you opened, but you must close them in the Opposite way to what you opened them.

The box changes its size to fit what ever you have put in it.The more you put in, the bigger the box will get,but we can change that.

If you use the "HEIGHT" and "WIDTH" tags, you can make the box the size that you want it, like this,,,,

<TABLE HEIGHT="50" WIDTH="100" BORDER="4" BORDERCOLOR="gold" BGCOLOR="magenta"><TR><TD>

And now the box is bigger than its contents

</TD></TR></TABLE>


And now the box is bigger than its contents

PAGE STILL UNDER CONSTRUTION

TABLES

NEXT ARE THE TABLES

TABLE No 1 TABLE No 2
CountryTempRain Fall
UKColdA lot
Everywhere Else WarmNot A Lot
 RainfallSunlight
Britain30mZero
Everywhere Else0m12 hrs

THE TABLE No 1 HAS BORDERS


AND IT IS WRITTEN LIKE THIS


<TABLE BORDER="4" BORDERCOLOR="silver" BGCOLOR="ffffdd">



<TR><TH>Country</TH><TH>Temp</TH><TH>Rain Fall</TH></TR>



<TR><TD>UK</TD><TD>Cold</TD><TD>A lot</TD></TR>



<TR><TD>Everywhere Else </TD><TD>Warm</TD><TD>Not A Lot</TD></TR>



</TABLE>



The first part of the code is the same as the "BOX" table.



Next you will see that every "ROW" starts with <TR> and ends with </TR>. this keeps every thing on that row on one line.The next part of the second line uses the <TH> and the </TH>, any thing in there goes as a column HEADER, SO
<TR><TH> 1st HEADER </TH><TH> 2nd HEADER </TH><TH> 3rd HEADER </TH></TR>

Will give you three columns.And a HEADER in each

The next line uses the <TD> and </TD> Tags, That puts a item in a box under each HEADER, SO

<TR><TD> 1st ITEM </TD><TD> 2nd ITEM </TD><TD> 3rd ITEM </TD></TR>



Will give you your first row of items under each HEARDER
and then you reapeat that for every row that you want


TABLE No 2 IS WRITTEN THE SAME AS TABLE No 1, EXCEPT THE FIRST LINE, INSTEAD OF
<TABLE BORDER="4" BORDERCOLOR="silver" BGCOLOR="ffffdd">
YOU SIMPLY PUT <TABLE>

BACK TO THE A1020592

Bookmark on your Personal Space


Conversations About This Entry

Entry

A991316

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Written and Edited by

References

h2g2 Entries

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more