top left
The HTML Source Logo


 html
Top Right
    
 Getting StartedHow Do I...TroubleShootingPromotionContact Us
 html
HTML
SEARCH THE SITE
advanced search



CATEGORIES
Home
Getting Started
HTML Cheat Sheet
Webmaster Tools
HTML Help Forum
Color Codes
Link to us









































bottom
HTML HTML HTML HTML
How Do I Add A Border To A Table?


How to do it

You can add a border to your table easily. Simply place a BORDER="?" tag in your <TABLE> tag, replacing the ? with the thickness you want your border to be in pixels. Your code should look something like this:

<TABLE   BORDER="?">
<TR>
<TH>Team</TH>
<TH>Games</TH>
<TH>Wins</TH>
<TH>Losses</TH>
</TR>
<TR>
<TD>Eagles</TD>
<TD>5</TD>
<TD>5</TD>
<TD>0</TD>
</TR>
<TR>
<TD>Jets</TD>
<TD>5</TD>
<TD>4</TD>
<TD>1</TD>
</TR>
<TR>
<TD>Little Giants</TD>
<TD>4</TD>
<TD>2</TD>
<TD>2</TD>
</TR>
</TABLE>



EXAMPLE

Border thickness of 1.

Team Games Wins Losses
Eagles 5 5 0
Jets 5 4 1
Little Giants 4 2 2



Border thickness of 6.

Team Games Wins Losses
Eagles 5 5 0
Jets 5 4 1
Little Giants 4 2 2



Border thickness of 10.

Team Games Wins Losses
Eagles 5 5 0
Jets 5 4 1
Little Giants 4 2 2



< BACK







Company   |   Careers   |   Partners   |   Advertising   |   Help
Privacy Policy   |   Trademark Notices   |   User Agreement
2001 TheHTMlSource.com, INC. All Rights Reserved.



Site hosted by Angelfire.com: Build your free website today!