Originally posted by zathras
View Post
- 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!
CSS vs Tables - Is the tide turning?
Collapse
X
-
-
I 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 - TablesComment
-
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.Cooking doesn't get tougher than this.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.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.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.Cooking doesn't get tougher than this.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.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.Hard Brexit now!
#prayfornodealComment
-
Originally posted by sasguru View Postweb developers.
There is no earthly reason why most people should know any of this.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.
You've come right out the other side of the forest of irony and ended up in the desert of wrong.
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
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Comment