70 likes | 273 Views
Tables for layout are bad 5 reasons . Tables Are Not Accessible Tables are Confusing Tables are Inflexible Tables Don't Always Print Well Tables for Layout are Invalid in HTML 4.01. Jeff Gring. Reason 1: Tables Are Not Accessible.
E N D
Tables for layout are bad5 reasons Tables Are Not Accessible Tables are Confusing Tables are Inflexible Tables Don't Always Print Well Tables for Layout are Invalid in HTML 4.01 Jeff Gring
Reason 1: Tables Are Not Accessible Most screen readersread web pages in the order that they are displayed in the HTML. And tables can be very hard for screen readers to parse.
<table><tr><td>This is the content</td></tr><table> DIV: <div>This is the content</div> Reason 1: Tables are confusing Tables require considerably more code than DIVs Difficult to maintain
Reason 3: Tables are Inflexible Slower to load Tables change how your layout looks
Reason 4: Tables Don't Always Print Well Printer issues for tables that are too wide.
Reason 5: Tables for Layout are Invalid in HTML 4.01 HTML 4.01 rules doesn’t apply with HMTL 5. Html 4: you can't use tables for layout. You should only use tables for tabular data Html 5: tables for layout are now valid HTML
Tables Are Not Accessible Tables are Confusing Tables are Inflexible Tables Don't Always Print Well Tables for Layout are Invalid in HTML 4.01 Nested Tables Load More Slowly than CSS for the Same Design Tables Can Hurt Search Engine Optimization Summary Resources: http://webdesign.about.com/od/layout/a/aa111102a.htm http://www.34sp.com/blog/official-news/why-tables-are-bad/ http://www.graphics.com/modules.php?name=Sections&op=viewarticle&artid=400 http://www.webpagesthatsuck.com/worst-websites-of-2011-Q3.html