<caption> Tag in HTML 5
In this article I am going to explain about caption tag in HTML 5
Definition
The <caption> tag In HTML 5 is used to creating a table caption. The <Caption> tag In HTML 5 defines the title of the table in your web page or web site.
Browser Support by <caption> tag
The <caption> tag is supported in internet explorer, mozilla firefox, Google chrome, opera and safari browsers.
Lets take an example of <caption> tag
<html>
<head>
<title>This is my first web page</title>
</head>
<body>
<table border="1">
<caption>
Student Record</caption>
<tr>
<th>
Name
</th>
<th>
Roll Number
</th>
</tr>
<tr>
<td>
Vipendra Verma
</td>
<td>
0927314001
</td>
</tr>
<tr>
<td>
Bhuwan Gera
</td>
<td>
0927314002
</td>
</tr>
</table>
</body>
</html>
|
Output
You may also read more about HTML 5 here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here