HTML Table Summary Attribute

The purpose of summary attribute is to mention the description of table. The browsers not display the text of summary attribute, the information can be considered as additional information for the webmaster.

Let’s go through an example to see how to use summary attribute in HTML code.

<html>
<body>
<table border="1" summary="Student Name and Marks">
<tr>
<td>
Student Name
</td>
<td>
Student Marks
</td>
</tr>
<tr>
<td>
Adam
</td>
<td>
80
</td>
</tr>
</table>
</body>
<html>

As you can see the browser not displayed the text given in summary attribute.

image

Tags: , ,

Author: Revo

Share This Post On

Submit a Comment

Your email address will not be published. Required fields are marked *

twelve + thirteen =

 

Pin It on Pinterest

Shares
Share This