Basic HTML Codes
Beginning to learn HTML.
These are just basic html codes that will help enhance your webdesigning skills, haha. This page deals with tables.
Beginning.
Tables are important in organizing content and texts in a website. You start a table by the following tag:
<table>Text Will Be Here.</table>
You can't see anything except for the text though, so we add the border attribute.
<table border="1">Text Will Be Here.</table> - That will look like:
What's Wrong with that Table?!
The text isn't inside of the table. You need to add a table row tag followed by a table data tag to get the text to stay inside.
<table border="1">
<tr>
<td>
Text Will Be Here.
</td>
</tr>
</table>
That will look like...
Want to change the BORDERCOLOR?
<table border="1" bordercolor="#FF0000">
<tr>
<td>
Text Will Be Here.
</td>
</tr>
</table>
That will look like...
Want to change the border style to SOLID?
<table border="1" bordercolor="#FF0000" cellspacing="0">
<tr>
<td>
Text Will Be Here.
</td>
</tr>
</table>
That will look like...
Want to add another column?
<table border="1" bordercolor="#FF0000" cellspacing="0">
<tr>
<td>
Text Will Be Here.
</td>
<td>
Text Will Be Here.
</td>
</tr>
</table>
That will look like...
|
Text Will Be Here.
|
Text Will Be Here.
|
Want to add another row?
<table border="1" bordercolor="#FF0000" cellspacing="0">
<tr>
<td>
Text Will Be Here.
</td>
<td>
Text Will Be Here.
</td>
</tr>
<tr>
<td>
Text Will Be Here.
</td>
<td>
Text Will Be Here.
</td>
</tr>
</table>
That will look like...
|
Text Will Be Here.
|
Text Will Be Here.
|
|
Text Will Be Here.
|
Text Will Be Here.
|