HTML | Tags and Attributes [TABLE] [Captions]




ÜHow to use captions ?
            To use caption, which is actually the title of the table, will be putted in the <CAPTION>….</CAPTION> tags just after the <TABLE> tag as follows,
          <TABLE>
          <CAPTION>……………</CAPTION>
Whatever we will write in between the <CAPTION>….</CAPTION> tags will be the caption of the table. Now, consider the following input for caption
.
Input :
<HTML><HEAD><TITLE>TABLE</TITLE></HEAD>
<BODY>
Use of colspan<BR>
<TABLE BORDER=1 WIDTH=50%>
<CAPTION><B><U><FONT SIZE=5>AMERICA</FONT></B></U></CAPTION>
<TR>
<TD ALIGN=CENTER COLSPAN=2>USA</TD>
</TR>
<TR>
<TD ALIGN=CENTER>New York</TD>
<TD ALIGN=CENTER>New Jersy</TD>
</TR>
</TABLE></BODY></HTML>
Output: 





Recommended Recommends

Comments

Contact Us