Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,254 Points

Tables for Layout

Now I know what you're all thinking when you see this title. You don't use Tables for Layout and of course, I agree.

But in the video I just watched in a PHP course, it was recommended to layout form elements on a page with HTML tables as a means to put them where you want them.

Laying out form elements is always something of a headache for me because I don't use tables to layout form elements. I rely on the CSS which is a little bit "hacky".

Am I going about this the wrong way. Does laying out input elements count as Tabular data so I should use Tables in this instance?

Thanks :)

1 Answer

Using table layouts is a bit archaic.

You can see that Bootstrap uses HTML5 form elements to style their forms. See code and examples here

Hope this helps.