|
HTML Home
HTML TutorialHTML Tutorial HomeAbout HTML Getting Started HTML Elements HTML Formatting HTML Attributes HTML Colors HTML Links HTML Images HTML Meta Tags HTML Comments HTML Forms HTML Tables HTML Image Maps HTML Frames HTML Entities HTML Layouts HTML Styles HTML Scripts HTML Website Templates Website Hosting Summary HTML Code GeneratorsHTML Code GeneratorHTML Table Generator Marquee Generator Music Code Generator HTML Text Generator Text Box Generator Free HTML CodesHTML Background CodeHTML Comment Box Codes HTML Font Codes HTML Picture Codes HTML Marquee Code HTML Music Codes More Codes... HTML ReferenceComplete HTML Tag ListHTML Special Characters Hex Color Codes HTML Help |
HTML TablesIn HTML, the original purpose of tables was to present tabular data. Although they are still used for this purpose today, many web designers tended to use tables for advanced layouts. This is probably due to the restrictions that HTML has on layout capabilities - it wasn't really designed as a layout language. Anyway, whether you use tables for presenting tabular data, or for page layouts, you will use the same HTML tags. Basic table tagsIn HTML, you create tables using the HTML Code:
This results in:
You'll notice that we added a You can also add attributes to the Widths can be specified in either pixels or percentages. Specifying the width in pixels allows you to specify an exact width. Percentages allows the table to "grow" or "shrink" depending on what else is on the page and how wide the browser is. HTML Code:
This results in:
Table HeadersMany tables, particularly those with tabular data, have a header row or column. In HTML, you can use the Most browsers display table headers in bold and center-aligned. HTML Code:
This results in:
ColspanYou can use the colspan attribute to make a cell span multiple columns. HTML Code:
This results in:
RowspanRowspan is for rows just what colspan is for columns (rowspan allows a cell to span multiple rows). HTML Code:
This results in:
ColorYou can apply color to your table using CSS. Actually, you can apply any applicable CSS property to your table - not just colors. For example, you can use CSS to apply width, padding, margin, etc HTML Code:
This results in:
Enjoy this website?
Oh, and thank you for supporting Quackit! |
FREE Hosting!With every domain name you register with ZappyHost, you get FREE (ad supported) hosting.PLUS you get:
Featured Template:
(Build your websites in minutes!) Got a MySpace Page?Get "www.yourname.com" for your MySpace page. Learn how >>. |
||||||||||||||||||