In this discussion we will introduce about the use of <caption> tag in html5. This tag is used to create the caption of the table. The <caption> tag defines the title of the table and used just after the <table> tag. The <caption> tag is used only once for a <table> tag. The caption by default apears centered and above the table. There is no specific attribute of this tag and "align" attribute is not supported in html5.
|<caption>Caption For Table</caption>|
<title>Example of caption tag</title>
<table border="1" bgcolor="#FFFFCC">
<b>Caption For Table</b></font></caption>
Difference between HTML5 and HTML4
There is no difference in both the versions in declaration.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.