SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    SitePoint Zealot Valera Selev's Avatar
    Join Date
    Apr 2004
    Location
    Lviv, Ukraine
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Forms and Table content

    AFAIK, it is recommended not to use tables for designing pages, only for displaying table content.
    That's why I've got a question: can forms be considered to be a table content?

  2. #2
    SitePoint Wizard rbutler's Avatar
    Join Date
    Jul 2003
    Location
    Springfield, MO
    Posts
    1,867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure if this will answer your question, but you can use tables for building a forms page, I do it all the time. You can also use the <label> tag as well. I don't really see that making a form with tables isn't practical, but I also see the advantages to not using them as well. As far I know, it is ok either way.
    Ryan Butler

    Midwest Web Design

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2004
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In terms of standards, forms are not seen as being content that should be put in tables. As far as I know, only tabular data (e.g. something resembling an Excel sheet-like structure) should be placed in <table> tags.

  4. #4
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    It is fairly easy to design forms without tables anyhow

  5. #5
    SitePoint Zealot Valera Selev's Avatar
    Join Date
    Apr 2004
    Location
    Lviv, Ukraine
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Claymore
    In terms of standards, forms are not seen as being content that should be put in tables. As far as I know, only tabular data (e.g. something resembling an Excel sheet-like structure) should be placed in <table> tags.
    What is a table?
    It's just a set of data arranged in rows and columns.
    In the case of filling a form, user enters data corresponding to a certain fileld name. Isn't it a table? We've got just a set of a fileldnames and values corresponding to them.

    Any ideas?

  6. #6
    SitePoint Enthusiast
    Join Date
    May 2004
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just think about tables as how you would use them in Microsoft Word or any other text editor, or how tables are used in newspapers. That is the way tables should be used in HTML as well.
    According to web standards, if you want to position elements, this should be done with <div> tags. Tables are not meant for positioning, just for the display of this tabular data I talked about.

  7. #7
    SitePoint Zealot Valera Selev's Avatar
    Join Date
    Apr 2004
    Location
    Lviv, Ukraine
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Claymore
    Just think about tables as how you would use them in Microsoft Word or any other text editor, or how tables are used in newspapers. That is the way tables should be used in HTML as well.
    According to web standards, if you want to position elements, this should be done with <div> tags. Tables are not meant for positioning, just for the display of this tabular data I talked about.
    So you think a form is not a set of tabular data?

  8. #8
    SitePoint Enthusiast
    Join Date
    May 2004
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, indeed. I think a form is not a set of tabular data.

  9. #9
    SitePoint Zealot Valera Selev's Avatar
    Join Date
    Apr 2004
    Location
    Lviv, Ukraine
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Claymore
    Yes, indeed. I think a form is not a set of tabular data.
    Bu we have a fieldname and a value CORRESPONDING to it. And it's a table.

  10. #10
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Valera Selev
    Bu we have a fieldname and a value CORRESPONDING to it. And it's a table.
    What's the big discussion for anyway. You can do it whichever way you want to really. I don't see how tables could harm anything in this case. I don't see tables a problem unless the whole site structure is done with them.

    I find it much easier with spans though.

  11. #11
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Tables are still an accepted way to lay forms out. Just be sure you build your tables in such a fashion as to avoid nesting, many empty cells, spacer gifs, etc.

  12. #12
    SitePoint Zealot Valera Selev's Avatar
    Join Date
    Apr 2004
    Location
    Lviv, Ukraine
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mstwntd
    What's the big discussion for anyway. You can do it whichever way you want to really. I don't see how tables could harm anything in this case. I don't see tables a problem unless the whole site structure is done with them.
    I find it much easier with spans though.
    I guess designing with spans is applicable when we have only one label and field in a row, but when we've got a layout having different number of fields and labels in a line, it's better to use tables.

    И вообще, кто как хочет, так и дрочит.

  13. #13
    SitePoint Zealot Valera Selev's Avatar
    Join Date
    Apr 2004
    Location
    Lviv, Ukraine
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vgarcia
    Tables are still an accepted way to lay forms out. Just be sure you build your tables in such a fashion as to avoid nesting, many empty cells, spacer gifs, etc.
    OK. That's clear.

  14. #14
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Valera Selev
    И вообще, кто как хочет, так и дрочит.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •