Comments

Egor Kloos -

Yes, I've found this to be a pain also. Tables do work very well although they're not semantically correct when used for layout. CSS does kind of drop the ball when it comes to HTML form elements. You can fix the size of the form but seeing as a form is such a part of the site interaction this at the very least sould be more flexible. So unless stylesheets can solve this it looks like Tables are still a viable option.

Johnny Rukavina -

Pardon my ignorance, but what is meant by "not semantically correct"?

Daniel Burka -

<p style="margin-top: 0">Not ignorance at all Johnny, I should have explained. Many HTML coders are trying to move toward (or back to) using tags that make sense for what they were intended to be used for. That is, using bullet lists where appropriate, using header tags like <h1> for actual titles, etc. It sounds simple, but for a long time, many designers have been just making their code look right, but not neccissarily with the appropriate code to do so. For instance, you can make a title look like a title by formatting your text to be big and bold, but by using proper header tags like <h1> your code means something to people (or search engine bots) who can't see the formatting. Using the right tag for the purpose means your code is semantically correct. Even unformatted, its basic intention is still clear.</p><p>Tables were originally intended to be used for displaying tablular data (like tables of numbers) and not for formatting at all. Advocates of style sheet design are moving away from using tables to format their designs and are trying to return tables to their original purpose.</p>

Egor Kloos -

Well, it's quite simple. HTML uses certain words for tags (namespace) to create a structure for a document. H1, FORM, IMG and TABLE. All these tags have a purpose and should contain a certain type of content. A H1 tag contains the most important header of the document. A TABLE tag contains tabular data, that's is what it's for. Semantics.

Read more on Web Semantics.

oh, btw. I've created a tableless form that will scale with window and text size. Well more or less. Judge for yourself

Kevin Lawver -

AOL Search (http://search.aol.com) has used CSS for its search form for almost a year. It makes the page smaller (although there are too many divs currently), and the ID's make it easy to style the form. It also looks "right" in all modern browsers without any style hacks. It may not stay that way forever, but it's that way now, and I like it.

Daniel Burka -

That's great that AOL is using CSS Kevin, but the real challenge is formatting more complex forms. This type of form for example is where the difficulty lies.

Steven Marshall -

Call me "Mister Silly" if I'm missing something, but doesn't specifying your forms "absolutely" in ems solve the problem of sizing, since 1 em (should) always equal the user's default font size?
So, for example, 1 em = 12px on my machine, but on a vision-impaired user's system, 1 em might be = 30px, for example...

padawan -

If you consider the table to be a tabular list of questions and answers, is that really a semantic sin?

Egor Kloos -

Personally I don't consider TABLE's for tabular a list questions and answers but just purely for data.

Jonathan Hedley -

I think a good argument could be made for using tables to layout forms in a semantic web.

Two table data cells in a table row (a label followed by an input widget) are obviously semantically linked, whereas sibling divs aren't necessarily.

Additionally, the fact that there are <input> nodes on a page is going to inform a semantic agent a lot more than a div's class-name or layout size.

Bio via LinkedIn

Daniel Burka

My name is Daniel Burka. I'm a web designer living in San Francisco. Currently, I'm the director of design with a startup called Tiny Speck and for several years I was the creative director at Digg. I grew up in PEI, Canada, where I was one of the founders of silverorange. Aside from obsessing about interface design and css selectors, I'm a frequently-falling rock climber, a lazy cyclist, and an often out-of-bounds disc golfer.

Tweets via Twitter

Photos via Flickr

Listening via Last.fm

Syndication via RSS

Search