TABLES AND FRAMES
TABLES
-
The tags;
-
<table> creates the table,
-
<tr> creates the rows in the table,
-
<td> creates the columns in the table.
-
Here is a simple example;
<table>
<tr>
<td> ..whatever.. </td>
<td> ..whoever.. </td>
</tr>
<tr>
<td> ..wherever.. </td>
<td> ..whenever.. </td>
</tr>
</table>
-
This creates a default 2*2 table with 'whatever' in the top-left,
'whoever' in the top-right, 'whenever' in the bottom-right, and 'wherever'
in the bottom-left.
-
I say default because you can manipulate its look by adding
modifiers to the <table> open tag.
-
Modifiers: height, width, cellspacing, cellpadding, border.
<table cellspacing=10 cellpadding=15 width=100%>
FRAMES
-
The tags;
-
<frameset> replaces the <body> tags in the web
page,
-
<frame src> source of html doc for a particular frame.
-
Basic frame setup;
<frameset>
<frameset COLS="#,#">
<frame src="http://.........">
<frame src="http://.........">
</frameset>
-
The '#' are filled with either percentages, pixels, or *.
'*' signifies whatever fraction remaining.
-
e.g. - <frameset COLS="30%,*">
-
Frames can also be divided by rows;
-
Mix and match to create your web page.
Not Covered:
Back to Top