View Full Version : Best HTML structure
09-11-2007, 05:55 PM
What do you think is the BEST structure to build an HTML page with. I mean should I use tables in tables in tables or is that the worst? What would be the most efficient to manage?
09-11-2007, 06:32 PM
tables are for tabular data. use divs.
09-11-2007, 06:41 PM
Yes and no (to both posts above).
Yes, tables are the worst to lay out a page and yes, they are for tabular data (phone directory, sports results, etc.) but using/nesting divs over divs is bad practice as well.
The best HTML structure is a structure that is semantic (http://brainstormsandraves.com/articles/semantics/structure/) (sorry if Iím repeating myself but I just wanna spread the truth :)). Thatís all one can say. You canít say use this and that as there is almost no general, ďgenericĒ way to lay out a site with fully semantic code since its meaning depends on the content of the site.
So learn about semantic HTML and use this knowledge to build your site.
09-11-2007, 06:54 PM
spent most of my time doing backend stuff, and thx for that semantics page, I forget all html tags tomorrow which i learn today ><
09-11-2007, 07:04 PM
Just skimming through it I can spot one error on that site on semantics. He misses the fact that the text in a blockquote must be wrapped inside a <p> element like this:
09-11-2007, 07:14 PM
I'm just looking for a neat manageable design. I have a lotta tabular data, but the alignment etc. is messy cause I am generating the code dynamically for the whole html but its generating as per request so the whole HTML doesnt get built at the same time, its built by parts. So right now Im using tables in tables (which I can see isn't a great solution) only for the alignment etc...maybe CSS be better for this eh? too lazy to change stuff now tho ><
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.