logo
g Text Version
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
Action Movies
Bible Basics
Houseplants
Romance Movies
Creativity
Family Travel
Southwest USA


dailyclick
All times in EST

Low Carb: 8:00 PM

Full Schedule
g
g HTML Site

BellaOnline's HTML Editor

g

HTML Elements and Attributes that Control the Table on the Webpage

Guest Author - Diane Cipollo

Below is a list of the most commonly used*** html element tags that control a table on the webpage.

Note: Some attributes listed below have been depreciated in favor of Cascading Style Sheets.

Creates and Controls A Table
ElementOpening TagAttributesClosing TagDescription
table<table>border="x or %"
bordercolor="color"
cellpadding="x"
cellspacing="x"
width="x or %"
align="?"
vspace="x"
hspace="x"
</table>Creates the outside walls of an HTML table

border -
The border attribute can be set in pixels or percentage. A value of zero will make the table walls invisible in the browser

bordercolor - sets the color of the border**
cellpadding - padding within cells set to pixels
cellspacing - padding between cells set to pixels
width - set in pixels or percentage
align - position of table on webpage (left, center or right)
vspace - pixels surrounding sides of table
hspace - pixels surrounding table top & bottom
tbody<tbody> OptionalDefines the body of a HTML table
td<td>bgcolor="color"
align="position"
valign="position"
background="url"
width="x or %"
height="x"
colspan="#"
rowspan="#"
nowrap
OptionalCreates the walls for the table cells

bgcolor - background color for cell**
align - contents to the left, right, center or justify
valign - aligns contents - top, middle or bottom
background - sets background image
width - sets width of cell in pixels or percentage
height - sets height of cell in pixels
colspan - number of columns to span
rowspan - number of rows to span
nowrap - prevents wrap within cell
tfoot<tfoot> OptionalDefines the footer of a HTML table
th<th> OptionalDefines the header cell in a HTML table
thead<thead> OptionalDefinds the head of a HTML table
tr<tr>bgcolor="color"
align="position"
OptionalCreates walls for the rows in an HTML table

bgcolor - sets background color for row**
align - aligns cells to the left, right or center
***A complete list of html element tags can be found at the World Wide Web Consortium (W3C) website.
http://www.w3.org/TR/REC-html40/index/elements.html
**Color can be set using color names (red, black, etc) or RGB color codes or hexidecimal color codes.




This site needs an editor - click to learn more!

Add HTML+Elements+and+Attributes+that+Control+the+Table+on+the+Webpage to Twitter Add HTML+Elements+and+Attributes+that+Control+the+Table+on+the+Webpage to Facebook Add HTML+Elements+and+Attributes+that+Control+the+Table+on+the+Webpage to MySpace Add HTML+Elements+and+Attributes+that+Control+the+Table+on+the+Webpage to Del.icio.us Digg HTML+Elements+and+Attributes+that+Control+the+Table+on+the+Webpage Add HTML+Elements+and+Attributes+that+Control+the+Table+on+the+Webpage to Yahoo My Web Add HTML+Elements+and+Attributes+that+Control+the+Table+on+the+Webpage to Google Bookmarks Add HTML+Elements+and+Attributes+that+Control+the+Table+on+the+Webpage to Stumbleupon Add HTML+Elements+and+Attributes+that+Control+the+Table+on+the+Webpage to Reddit




RSS | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


For FREE email updates, subscribe to the HTML Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor


Content copyright © 2014 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.

g


g features
What's Coming in HTML 5

What is FTP?

HTML Fundamentals - Tables

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor