Tuesday

How to make a single border ?

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

With a no border: Codes

<table border="0">
<tbody><tr>
<td>Single border</td>
</tr>
</tbody></table>

Example:


Single border


If you want to show a border or thick its, just change border value ( <table border="1"> )

With a standard border:Codes

<table border="1">
<tbody><tr>
<td>Single border</td>
</tr>
</tbody></table>


Example:

Single border


With a thick border:Codes



<table border="1">
<tbody><tr>
<td>Single border</td>
</tr>
</tbody></table>

Example:

Single border

No comments: