Page 126 - CA_165_V2.0_Flipbook
P. 126

</TR>
                    </TABLE>
                  The following HTML code uses the <TABLE> tag to create a table with two rows and three columns,
                  displaying cities and their famous landmarks:

                  <HTML>
                  <HEAD>

                  <TITLE> Working with Table</TITLE>
                  </HEAD>
                  <BODY BGCOLOR = "YELLOW">

                  <TABLE>
                    <TR>
                                       <TD> DELHI </TD>
                                       <TD> MUMBAI </TD>

                                       <TD> KOLKATA </TD>
                    </TR>
                    <TR>
                                       <TD> INDIA GATE </TD>

                                       <TD> GATEWAY OF INDIA </TD>
                                       <TD> VICTORIA MEMORIAL </TD>
                    </TR>
                  </TABLE>

                  </BODY>
                  </HTML>
                  The output of the preceding HTML code is as follows:














                      Table without any border.

                       Do you know?


                       By default, Table does not contain any border whereas the text is arranged in tabular form.



                  <TH> (Table Heading) Tag
                  This tag is used to denote a cell as heading cell. Syntax to use the <TH> tag is as follows:

                    <TH>  Text  </TH>


                   124   Touchpad Computer Applications-X
   121   122   123   124   125   126   127   128   129   130   131