how to put a border for entire page...and how to make a table within the table..

One way to do it is to have a main container. This could be a div or a table. Then set the border using css.
Eg:

<div id="main" style="border: 1px solid #333333"> <!-- inline styling. you could also do this in a separate css file. -->
....
</div>

Its the same for tables. Replace div with table tag. But, div is more lightweight.
To include a table within a table, create the new table inside <td> tag like so:

<table id="main">
<tr>
 <td>
   <table><tr><td>&nbsp;</td></tr></table>
 <td>
</tr>
</table>

Hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.