How to make a single border ? Tables are defined with the <table> tag. A table is divided into rows (with the <tbody> <tr> tag), and each row is divided into data cells (with the <td> tag). The letters td stands for "table data," which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.
Single border codes
<table border="1"> <tbody> <tr> <td>Single border</td> </tr> </tbody> </table> |
Two row in border : Just copy this codes:
<tbody> <tr> <td>Single border</td> </tr> </tbody> |
and paste after first row </tbody> codes ( see the red one):
<table border="1"> <tbody> <tr> <td>First row</td> </tr> </tbody> <tbody><tr> <td>Second row</td> </tr> </tbody></table> |
You tables now, should be look like this:
First row |
Second row |
How about, to build a second column? just copy this codes:
<td>First column</td> |
and paste after first column </td> codes ( see the red one):
<table border="1"> <tbody> <tr> <td>first column</td> <td>second column</td> </tr> </tbody> </table> |
You tables now, should be look like this:
First column | Second column |
If your combined, this two codes ( row and column codes)you tables now, should be look like this:
row 1, column 1 | row 1, column 2 |
row 2, column 1 | row 2, column 2 |
No comments:
Post a Comment