HTML CSS IMAGES LINKS | |||||||||||||
HTML → The very basic table There are three basic units in any table:
The tags for these are:
First, we are declaring a <table>. A <td> is always enclosed in a <tr>, which is always enclosed in a <table>.
Here is an example:
And here's the code: <table border="0"> Note that the first <table> tag has the attribute called "border." You can specify the width of the border.
And here's the code:
<table border="1">
When coding your tables it is advised to assign a value of 1 to the border attribute. Turning the border "on", will make the process of troubleshooting your code easier. Once you completed coding the table you may assign its border attribute a value of "0" to hide its borders.
|
|||||||||||||
back ↑ |