Untitled Document



 Introduction to HTML
 Structure of HTML
 Creating First HTML  Document
 Building Your HTML  Document
 Tables
 Creating Basic Tables
   Table
   Creating Basic Table
   Table Parts
   The <TABLE> Tag
   Rows and Cells
   Empty Cells
 Captions
 Table and Cell Alignment
 
 Table Alignment
 Cell Alignment
 Cell that Span Multiple  Rows, Columns
 
 Cell that Span Multiple  Rows, Columns
 Defining Table and  Column Widths
 
 Defining Table and  Column Widths
   Setting Break in Text
   Table Widths
 Column Widths
 Other Features of Tables
 
 Other Features of  Tables
   Border Width
   Cell Spacing
   Cell Padding
   Color in Tables
 Other features of  Table
 Frames
 Including Images into  Document
 Including Multimedia
 Developing HTML  FORMS
 Using Style Sheet
 Understanding URLs
 Using JavaScript
 Using Java

Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




  Table > Creating Basic Tables

<TR> tag defines a table row, which can contain heading and data cells.

To create an empty cell, define a cell with a <TH> or <TD> tag with nothing inside it. You can also add a line break in that cell by itself with no other text.

The browser displays the table.


  Empty Cells

If you want a cell with nothing in it, just define a cell with a <TH> or <TD> tag with nothing inside it.

Syntax:

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

<TR>
<TD><BR></TD>
</TR>

  Captions

Table caption tell the reader what the table is for. Although you could just use a regular paragraph or a heading as a label for your table, there is a <CAPTION> tag for just this purpose. Because the <CAPTION> tag labels captions as captions, a tool to process HTML files could extract them into a separate file, automatically number them, or treat them in special ways simply because they are captions.

The <CAPTION> tag goes inside the <TABLE> tag just before the table rows, and it contains the title of the table. It closes with the </CAPTION> tag.

Syntax:

<Table>
<CAPTION ALIGN=BOTTOM>……………</CAPTION>
The optional ALIGN attribute to the caption determines the alignment of the caption. However, depending on what browser you're using, you have different choices for what ALIGN means.

In Internet Explorer, you use the VALIGN attribute to put the caption at the top or the bottom, and ALIGN has three different values: LEFT, RIGHT, and CENTER, which align the caption horizontally.

In Netscape Navigator, use ALIGN=BOTTOM or ALIGN=TOP, and then use the <DIV> tag with its ALIGN attribute to align the caption text to the left, right, or center.

Back Next


Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




17, Vadsarvala Nivas, 65-A, J. Nehru Road, Mulund (W), Mumbai - 400 080 INDIA
Tel : 91-22-25795588, 91-22-25780444 Fax : 91-22-25793397
Email : ionline@vsnl.com
© Image Online 2001-2003