How To Learn HTML Tables and the Border Attribute
HTML Tables and the Border Attribute
Tables are defined the <table> tag in
html document. A table is divided into rows by the <tr> tag, and each row
is divided into cells (with the <td> tag). Td tags stands for table data, and show the content of a data cell. A
<td> tag can make contain text, links, images, lists, forms, other
tables, etc. You can use border attributes in table for border. If you do not need a border attribute, the table will be
displayed without borders. Sometimes this can be useful, but most of the time,
we want the borders to show. Because show beautyfull. . .
Type the image code in your notepad or html document...
Or Copy this code ...
<!DOCTYPE html>
<html>
<body>
<table border="1">
<tr>
<th>Name</th>
<th>Score</th>
</tr>
<tr>
<td>Akash</td>
<td>500</td>
</tr>
<tr>
<td>Atiq</td>
<td>500</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<table border="1">
<tr>
<th>Name</th>
<th>Score</th>
</tr>
<tr>
<td>Akash</td>
<td>500</td>
</tr>
<tr>
<td>Atiq</td>
<td>500</td>
</tr>
</table>
</body>
</html>
Now save the code on your notepad or html document. Your browser show like this image.
Change code who want you show in your browser...To learn more about html show the next html post......