|
HTML Home
Create a Website 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 Scroll Box Codes HTML Font Codes HTML Picture Codes HTML Marquee Code HTML Music Codes HTML Templates More Codes... HTML ReferenceHTML ExamplesComplete HTML Tag List Complete HTML 5 Tag List HTML Special Characters Hex Color Codes HTML Help FREE Hosting!With every domain name you register with ZappyHost, you get FREE hosting.PLUS you get:
|
HTML Table TutorialThis HTML table tutorial demonstrates how to create tables in HTML. It assumes you know how to create an HTML page. If you're not familiar with HTML try the HTML Tutorial. Basic table tagsIn HTML, you create tables using the table tag, in conjunction with the tr and td tags. Although there are other tags for creating tables, these are the basics for creating a table in HTML.
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.
Table HeadersMany tables, particularly those with tabular data, have a header row or column. In HTML, you can use the th tag. Most browsers display table headers in bold and center-aligned.
ColspanYou can use the colspan attribute to make a cell span multiple columns.
RowspanSimilar to what colspan is for columns, rowspan enables you to make a cell span multiple rows.
Adding CSS to tablesYou can format your tables using Cascading Style Sheets (CSS). Using CSS, you can specify background colors, border colors, border styles etc. Also, although HTML has a tag for aligning table contents, and another for specifying a background color, these tags are deprecated. You are better off using CSS for these tasks.
Wrap upYou can achieve some pretty amazing stuff with tables, especially when used in conjunction with CSS. If you'd like to learn more:
Enjoy this website?
Oh, and thank you for supporting Quackit! |
Need Content for your Website?Get unique, quality digital content for your website. You can even earn money by reselling it!Includes:
|
|||||||||||||||||||||||||||||||||||||||||||