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 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.