The Table Caption in HTML is used to give heading to the tables.
Understand with Example
The Tutorial illustrates an example from Table Caption in HTML. In this code, we try to show you a table heading.
<tr>:The <tr> is used to define a row in the table.
<th> : The <th> tag is used to give headings to specified columns in a tables.
<td> :This is used to define a cell in a tables.
The code is saved with a .html extension, Now you can paste the path of code into a url of browser and execute the code.
<table border="1"> <tr> <th>data</th> <th>description</th> </tr> <tr> <td>WWW</td> <td>World Wide Web</td> </tr> </table>
The web browser will evaluate the above code as:
|WWW||World Wide Web|
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Table Caption in HTM
Post your Comment