Full width home advertisement

Welcome Home

Post Page Advertisement [Top]

How to Set Table Caption

Table caption tag is used as a title or head details for the table. Note: This tag is deprecated in newer version of HTML/XHTML.


<!DOCTYPE html>



<title>HTML Table Caption</title>



<table border="1" width="100 %">

<caption>Scholars Globe caption</caption>


<td>row 1, column 1</td>

<td>row 1, column 2</td>



<td>row 2, column 1</td>

<td>row 2, column 2</td>





See Result:

Scholars Globe caption
row 1, column 1
row 1, column 2
row 2, column 1
row 2, column 2

No comments:

Post a Comment

Bottom Ad [Post Page]