Print Design Templates Take a look at these creative Graphic Design templates for brochures, flyers, newsletters, stationery, postcards, ads, menus and posters for a variety of businesses.
Invoicing 4 Freelancers A complete, secure, online billing application that maintains hourly service billing, flat fee billing and recurring charges. Integration with Authorize.Net and other leading payment gateways provides hands-free recurring billing with a sophisticated CRM system.
Free Design Magazines Browse through our extensive list of free Graphic Design, Web Design, Business, Computer, and Computer Graphics magazines, white papers, downloads and podcasts to find the titles that best match your skills and interests; topics include management, marketing, operations, sales, and technology. Simply complete the application form and submit it. All are absolutely free to freelance professionals who qualify.
Suggested Links Photoshop Tutorials
Logo Designer's Logos
Web Design Tools List
Layouts & Templates Directory
Web Design & Graphic Design Blog
Photoshop, Flash, 3D Studio Max Tutorials
Web Designers & Developers
Crafts for Kids
Photoshop Tutorial Man
Tutorial Guide -- Free Webmaster Tutorials
Design Contests
How to Draw
Work From Home Job Search
OTHER SITES WE OWN
AllFreelance
Graphic Design Resources Directory
Graphics Tutorials Directory
Social Networking Articles
Design Sites Up
All Freelance Work & Portfolios
Graphic Design Community
Education & Learning Directory
![]() |
home > Web Design Tutorials > Programming Tutorials > XHTML Coding Tutorials > XHTML ATTRIBUTES TUTORIALS
Tables
It is a basic introduction to tables in XHTML, which covers how to construct a table and the options available with different properties.
What is a Table?
A table is a collection of information or data arranged into related columns and rows. The point of intersection of any given column and row is known as a cell.
xhtml table structure
You define a table by putting all elements you want in the table between the table and the corresponding /table tags.
xhtml Table Attributes
Any of the table tags can take the following attributes, which function in the same way as for all tags that accept them…
xhtml Table Spanning
One thing you may have discovered while looking at pages on the Web, is that not all tables are organized into nice neat grids. Some of them have different numbers of cells in different columns or in different rows. In other words, not all boxes are a perfectly symmetrical set of rectangles.
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
||
Using Tables for Layout
Tables can be a very useful tool for page layout, so long as they are used judiciously. See the next section for the things you should pay attention to when using tables for page payout.
Styling Tables
You can use either style sheets or attributes to style documents. Both have benefits and drawbacks. Style sheets have more flexibility and are in accord with new standards, but they are also not backwardly compatible. Many table attributes have been deprecated in favor of style sheets, and many only work in certain browsers, however, they are backwardly compatible.
Good Table Design
There are many issues that go into the design of tables. Unfortunately, most of them are ignored. Designers often feel they have carte blanche to use tables as they will to layout Web pages. In fact, some of the major WYSIWYG development software uses tables for exact positioning of elements on the page to the extent that every element in the page will be in its own table, nested inside other tables. This is not immediately apparent on a normal computer screen, but can cause problems for some users.
Tables
Tables arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into rows and columns of cells. They're often used for page layout, but the trend now should be towards using style sheets for that. Using tables for layout may create problems when rendering to non-visual media. Also, when used with graphics or pre-formatted text, tables may force users to scroll horizontally.
Table Elements/Tags
Table tags are tags that define a table…
Tables
Probably everything you will ever need to know about tables in this tutorial. I am going to show you how to apply styles to them so you can have valid coding weather you are using HTML 4.01 Transitional / Strict or using XHTML.
Tables
XHTML tables are designed to hold tabular data, like this…
Tables
Tabular arrangements of data into rows and columns can help the viewer sort through masses of data to understand their underlying structure and content. So, tables are useful devices for presentation of information in a meaningful form. At the same time, tables can be used to structure the layout of a Web page regardless of its content. You can produce a variety of page designs simply by the designing different table structures into which your page information will fit. In short, tables are important presentation devices, and you need to know as much as you can about how to use them.
Table Borders
When a table is defined by a table tag with no styles specified, a borderless table as wide as its enclosed data is displayed.
Table Colors
Tables can have outer border colors and cell border colors. They can also have background colors, patterns, and graphic images as backdrops for the full table or within selected cells.
Table Groupings
When working with large tables with varying cell sizes, alignments, and colors you can bring a more orderly structure to the table by grouping columns and rows. In this fashion you can set structural and styling specifications for the groups and have those features propogate automatically across the individual cells contained within the groups.
Tables
For a language that emerged from academia -- a world steeped in data -- it's not surprising to find that HTML, and now its progeny XHTML, support a set of tags for data tables that not only align your numbers, but can specially format your text, too.
Table Tags
A wide variety of tables can be created with only five tags: the table tag, which encapsulates a table and its elements in the document's body content; the tr tag, which defines a table row; the th and td tags, which define the table's headers and data cells; and the caption tag, which defines a title or caption for the table. Beyond these core tags, you may also define and control whole sections of tables, including adding running headers and footers, with the colgroup, col, tbody, thead, and tfoot tags. Each tag has one or more required and optional attributes, some of which affect not only the tag itself, but also related tags.
How do I create tables directly in XHTML code?
Making tables in "raw" HTML or XHTML code can be rather tedious and error-prone, due to the large number of table cells and rows to be included. Even expert XHTML coders tend to resort to visual web editors such as Dreamweaver when they are required to create large tables. Nevertheless, the following is a brief overview...
Create Your First Table
There are three primary tags for use with a table…
RECENT ARTICLES from Graphic Design BloG
[CaRP] Can't open cache file.
Business Cards: Ideas and Inspiration, Part II
Today we continue looking at business cards that stand out, and here’s hoping you get some inspiration and ideas! After all, you only get one first impression, so your business card should be something that showcases the best of your design abilities. On Wednesday we looked at the use of interesting shapes, 3D business cards, [...]
![]() |
![]() |
|
![]() |
![]() |
|
[CaRP] Can't open cache file.
Making the Move from Freelance Work to Full-Time Employment
If you are like me, after graduating from a graphic design school, your goal was to make it as a freelance web designer. The lure of flexible hours, working from home and the freedom to manage your own time was too much to resist. At some point, I decided it may be ?easier? to work [...]
Tips for Asking for a Raise
At some point in our careers, there is a time when we open our paychecks and breathe a sigh of disappointment. After years of studying at a graphic design school and countless hours spent devoted to learning from colleagues and researching new design techniques, the numbers on our pay stub just don?t seem to measure [...]
Stock vs. Original Digital Photography
A picture is worth a thousand words. Graphic design schools teach us that photos on web sites have the potential to capture our attention, motivate us to read more or even propel us to navigate to another web site entirely. They inflict emotion and can establish a connection between site visitors and the goods or [...]
3 Tips to Manage Content Updates
While walking through the pharmacy I passed the aisle filled with red heart-shaped boxes filled with chocolates and remembered Valentine?s Day is quickly approaching. Even though I was surrounded by so many representations of love, it reminded me of one thing that I actually despise ? web content updates! Graphic design schools teach many, many [...]
Should You Drop the Drop-Down Menus?
I was recently on a home improvement web site searching for ideas for renovating my bathroom. After a few minutes on the site I realized that I was not going to find what I was looking for ? it certainly could have been there, but I just could not find it. Menu after menu had me [...]
Sharpen Your Skills and Gain an Edge at 2011 Web Design Conferences
Graphic design schools prepare us well for our immediate future, but it takes effort to stay on top of the ever-changing field of web design. Following are a few of the upcoming conferences and trade shows meant to help you stay a step ahead of the competition.
Interaction Eleven In its fourth year, Interaction Eleven is [...]
All Web Design Resources is a Directory & Blog Full of Tools for Web Site Designers
All Web Design Resources Portal is a Web Site Design education directory with resources & articles for Graphic Designers, Web Developers, & Web Designers including a Web Design forum, blog, graphics software tips, web development resources, web programming tools, web design jobs, advice for new web designers about web design schools and education as
well as tips for freelance web design business owners, and much more.