<TD> R.K. Taxali </TD> <TD> BPB Publications </TD> </TR> <TR> <TD> Visual Basic .NET </TD> <TD> Jeffrey R. Shapiro </TD> <TD> Tata McGraw Hill </TD> </TR> <TR> <TD> Core Java Vol </TD> <TD> Horstmann Cornell </TD> <TD> Pearson </TD> </TR> </Table> </body> <html> Illustration . : An HTML code to Table tags In the above HTML code, the <Table border= > tag creates a table structure with border.
The code <Caption> Books and Authors </Caption> display the text specified between <Caption> as title to the table. Chapter Pages The above code contains four set of <tr> blocks. First block of <tr> creates a table row with three column headings with the help of <th> tag. When you use <th> tag, the column heading were aligned center and text becomes bold by default.
Rest of the <tr> blocks display the contents what you specify within <td> tags. All the tags used with table were container tags. So, each and every tag should be closed with their closing tag. The following Figure is more useful to understand the same code given above.
The output will be: Table Block Row Column heading Row - Data Row - Data Row - Data Table heading </Table> <Table border= > <Caption> Books and Authors </Caption> <TR> <TR> <TR> <TR> </TR> <TH> Book </TH> <TH> Author </TH> <TH> Publisher </TH> <TD> Foxpro . </TD> <TD> R.K. Taxali </TD> <TD> BPB Publications </TD> <TD> Visual Basic .NET </TD> <TD> Jeffrey R. Shapiro </TD> <TD> Tata McGraw Hill </TD> <TD> Core Java Vol </TD> <TD> Horstmann Cornell </TD> <TD> Pearson </TD> </TR> </TR> </TR>