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: 





Author: Tanmay Chakrabarty

Tanmay Chakrabarty is a former CSE student, currently working as a Senior Software Engineer with 5+ years of experience in the field of Web Application development in PHP+MySQL platform with strong skills in Javascript, JQuery, JQuery UI and CSS. He tries to write notes every week but fails due to heavy loads of duty.

Recommended Recommends

Comments

Contact Us