One thing that many wannabe web developers miss is that once you put your content into tables you have made your site pretty much unusable for anybody that needs to use a screen reader.
Yes it can be a lot more work to make your CSS layout look good in all the browsers, and it is not always easy, but a screen reader will make your website appear as it should to people using a screen reader, tables will not.
I know I'm guilty of using tables on my sites and it is something that will be fixed eventually (Not that many blind people are going to be interested in renting a game server anyway...).
I have spent a lot of time testing websites for accessibility in the past year and it is shocking how bad the majority are....
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: CSS vs Tables - Is the tide turning?
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "CSS vs Tables - Is the tide turning?"
Collapse
-
Originally posted by DimPrawn View PostMods, please move this purely Technical and boring post on box models, collapsing borders and floating divs to Technical, as it has no bearing on house prices whatsoever.
Leave a comment:
-
Mods, please move this purely Technical and boring post on box models, collapsing borders and floating divs to Technical, as it has no bearing on house prices whatsoever.
Leave a comment:
-
Originally posted by bogeyman View PostAlso, CSS has stupid uncontrollable crap like 'Margin Collapse' which tries to second-guess the designer's intention and leaves him no control over the rendering.
If it wasn't in there you'd find a lot more uncontrollable inconsistencies when trying to layout a body of text in multiple paragraphs.
Leave a comment:
-
Originally posted by chicane View PostThere are some odd browser bugs (especially in IE6) but these are well known and any developer worth his/her salt will be able to work around them.
Leave a comment:
-
Originally posted by bogeyman View PostAt least most (all?) browsers can render complex table markup accurately. The same cannot be said for the CSS box model. You can make a page that renders slightly differently in IE7, FF, Opera, Safary etc.
There are some odd browser bugs (especially in IE6) but these are well known and any developer worth his/her salt will be able to work around them.
Leave a comment:
-
Originally posted by matt99 View PostI would always use tables to display tabular data, that is their purpose. If you keep the table simple and use the correct markup, screen readers I have tested have no problem with reading the data.
Layout - divs
Data - Tables
But that's not enough. So many HTML hacks fail to grasp semantic markup and think "Hey, it's cool - I'm using DIVs".
Take a look at the 'Nested DIV Soup' that abounds on the web nowadays. It's not quite as bad as nested table markup, but not far off.
At least most (all?) browsers can render complex table markup accurately. The same cannot be said for the CSS box model. You can make a page that renders slightly differently in IE7, FF, Opera, Safary etc.
Who's right? Well, nobody as it turns out (least of all IE). The CSS standards are often ambiguous and open to 'interpretation' by the implementors.
Also, CSS has stupid uncontrollable crap like 'Margin Collapse' which tries to second-guess the designer's intention and leaves him no control over the rendering.
Leave a comment:
-
Originally posted by NickFitz View PostThe readers will read tables properly. It's the improper use of tables that's the issue.
If a table of data is present and marked up correctly, a screen reader will interpret the tabular markup so as to read out the data in a meaningful way, for example by prepending the column and row headers before a datum - e.g. a five-day weather forecast might be read as "table six rows four columns Wednesday max temp 23 degrees, min temp 12 degrees, wind 10mph..." where "Wednesday" is the content of the <th> at the start of the row, and "max temp" and so forth are the contents of the <th> at the top of the column.
If you study the relevant part of the HTML 4.01 spec there are a lot of attributes such as "headers" and "scope" specifically to support this kind of usage which the majority of so-called web developers never use (because they don't know the spec).
If nested tables are improperly used to control the fine layout of the page then the speech output will be cluttered with a lot of meaningless information: "table 3 rows 4 columns row 1 image:spacer.gif image:spacer.gif image:spacer.gif image:spacer.gif row 2 image:spacer.gif table 4 rows 5 columns row 1 image:spacer.gif image:spacer.gif Welcome to our website image:spacer.gif image:spacer.gif image:company logo..." which is what renders such abysmal markup inaccessible.
Although screen readers and other assistive technologies (accessibility isn't just about visual impairment) provide ways for users to work around such markup, the existence of the markup is nonetheless an unnecessary impediment to access to the content of the page, and can therefore justly be considered to be discriminating against users with certain kinds of disabilities.
I can't believe that in 2008 there are still people who don't know all this.
There is no earthly reason why most people should know any of this.
Leave a comment:
-
Originally posted by dang65 View PostEven big corporations don't expect web developers to write HTML with screen readers in mind. (Not any of the ones I've worked for anyway.) I think the issue is just quietly ignored, with the exception of some high-usage commercial sites perhaps.
For example, the Accessibility Guidelines for bbc.co.uk: "Unless it can be shown to be technically or practically impossible, all content MUST be made accessible."
More and more major companies are becoming aware of their responsibilities under the Disability Discrimination Act, and equivalent legislation in other countries. Sooner or later there will be a discrimination suit brought in this country (it's already happened elsewhere), and web developers who aren't already up to speed on these matters will find their antiquated skills suddenly in much less demand.
For example since the Sydney Olympics case was won in Australia in 2000, working with web standards has become the only way for Australian web developers to find serious work - no other company wants to be the next to lose such a case.
Leave a comment:
-
Originally posted by dang65 View PostEven big corporations don't expect web developers to write HTML with screen readers in mind. (Not any of the ones I've worked for anyway.) I think the issue is just quietly ignored, with the exception of some high-usage commercial sites perhaps.
Leave a comment:
-
Originally posted by NickFitz View PostI can't believe that in 2008 there are still people who don't know all this.
Even big corporations don't expect web developers to write HTML with screen readers in mind. (Not any of the ones I've worked for anyway.) I think the issue is just quietly ignored, with the exception of some high-usage commercial sites perhaps.
Leave a comment:
-
Originally posted by dang65 View PostSo, I guess the disability legislation comes down like a ton of bricks on those readers which don't read tables properly, right?
If a table of data is present and marked up correctly, a screen reader will interpret the tabular markup so as to read out the data in a meaningful way, for example by prepending the column and row headers before a datum - e.g. a five-day weather forecast might be read as "table six rows four columns Wednesday max temp 23 degrees, min temp 12 degrees, wind 10mph..." where "Wednesday" is the content of the <th> at the start of the row, and "max temp" and so forth are the contents of the <th> at the top of the column.
If you study the relevant part of the HTML 4.01 spec there are a lot of attributes such as "headers" and "scope" specifically to support this kind of usage which the majority of so-called web developers never use (because they don't know the spec).
If nested tables are improperly used to control the fine layout of the page then the speech output will be cluttered with a lot of meaningless information: "table 3 rows 4 columns row 1 image:spacer.gif image:spacer.gif image:spacer.gif image:spacer.gif row 2 image:spacer.gif table 4 rows 5 columns row 1 image:spacer.gif image:spacer.gif Welcome to our website image:spacer.gif image:spacer.gif image:company logo..." which is what renders such abysmal markup inaccessible.
Although screen readers and other assistive technologies (accessibility isn't just about visual impairment) provide ways for users to work around such markup, the existence of the markup is nonetheless an unnecessary impediment to access to the content of the page, and can therefore justly be considered to be discriminating against users with certain kinds of disabilities.
I can't believe that in 2008 there are still people who don't know all this.
Leave a comment:
-
Originally posted by matt99 View PostLayout - divs
Data - Tables
Easily fixed by adding a container div like it should have been done in the first place, or some % widths on the existing divs.
Leave a comment:
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Secondary NI threshold sinking to £5,000: a limited company director’s explainer Yesterday 09:51
- Reeves sets Spring Statement 2025 for March 26th Dec 23 09:18
- Spot the hidden contractor Dec 20 10:43
- Accounting for Contractors Dec 19 15:30
- Chartered Accountants with MarchMutual Dec 19 15:05
- Chartered Accountants with March Mutual Dec 19 15:05
- Chartered Accountants Dec 19 15:05
- Unfairly barred from contracting? Petrofac just paid the price Dec 19 09:43
- An IR35 case law look back: contractor must-knows for 2025-26 Dec 18 09:30
- A contractor’s Autumn Budget financial review Dec 17 10:59
Leave a comment: