Saturday, June 3, 2017

Learn HTML table

An HTML is defined with the <table> tag  Each table row is defined with the <tr> tag. A table header is defined with the <th> tag. By default, table headings are bold and centered. A table data/cell is defined with the <td> tag.The HTML <caption> tag is used for creating a caption for a table. There could be only one caption per table.
<!DOCTYPE html>

<html>

<head>

<title>HTML caption Tag</title>

</head>

<body>

<h2>Cricketers List</h2>

<table width="100%">

<caption>Indian Cricketers</caption>

<th>Name</th>
            <tr><td>mas</td></tr>
            <tr><td>sakib</td></tr>
            <tr><td>mustafiz</td></tr>
            <tr><td>tamim</td></tr>

</table>

</body>


</html>

No comments:

Post a Comment