I’ve been wondering for quite some time now how important it really is to code to w3c standards. The only reasons I remember hearing are these:
1. The W3C said to.2. For the disabled.3. For the users with JavaScript disabled.
I got my hands on a screen reader and did some research. This is what I found:
1.
Contrary to what everyone always told me, Screen Readers can read tables. I read most of my site(which uses tables), and had no trouble at all. I created a site in both tables and divs and couldn’t tell the difference between the two. I’m not quite sure where this false idea came from… ?
JavaScript works in Screen Readers. I tested the following link:
<a href=”javascript:window.open(‘http://www.yahoo.com’);”>Yahoo!</a>
and had no trouble. The text reader opened a new window with Yahoo! in it. The only problem with it is it screwed up the original window. If I used this link:
<a href=”
It opened a new window with Yahoo! in it and left the original window how it was. The only reason not to do it is because it would be annoying for them… ?
Now, for the JavaScript, I like to code it in such a way that it will “fail-safe”, so that really isn’t a big issue. However I have not heard any valid reason to not use tables, and the one that I did hear(for the disabled) I just disproved. Are there any other reasons not to use tables? Since it works for users with disabilities, I have no reason at all to not use them, besides that it isn’t how the W3C said to. If there are some reasons that I am missing, please let me know. ?
NOTE: For the tests, I used a Screen Reader that I found on the IBM Accessibility Center. It costs $149.00.
[i]Originally posted by nkaisare [/i]Really? That's not what most people on here seem to want me to think... Most people say that it is [b]WRONG[/b] to use tables. ? Anyway, thanks for your comments. ?
[B]Comment:
Using tables for layout does not mean that you are not coding to standards. You can use tables and make the site standards compliant. W3 [b]recommends[/b] not using tables purely for layout.[/B][/QUOTE]
[i]Originally posted by nkaisare [/i]
[B]Using tables for layout does not mean that you are not coding to standards. [/B][/QUOTE]
[i]Form the HTML 4.01 Specification[/i][font=georgia]If you are using tables for layout then you are indeed "not coding to standards." And keep in mind that your experience with one screen reader does not apply to all screen readers. There's a good review of how several different ones handle tables in the book [i]Accessible Web Sites[/i] (
[b]Tables should not be used purely as a means to layout document content as this may present problems when rendering to non-visual media. Additionally, when used with graphics, these tables may force users to scroll horizontally to view a table designed on a system with a larger display. To minimize these problems, authors should use style sheets to control layout rather than tables.[/b]
[i]http://www.w3.org/TR/html4/struct/tables.html#h-11.1 [/i][/quote]
<body style="margin:0px;">
<div style="position:absolute; top:0px; left:0px; width:20%; height:20px; background-color:#A3BDE2;">
Links...<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
link2<br>
</div>
<div style="position:absolute; top:0px; left:20%; width:60%; height:100%; background-color:blue;">
Main content...
</div>
<div style="position:absolute; top:0px; left:80%; width:20%; height:100%; background-color:#A3BDE2;">
Other side...
</div>
</body>
Please don't pick on my code, since this is only an example... ? What I am trying to do is to make all three columns the same height. With tables, that is an easy task. With divs? Very hard, if not impossible. If divs would be better equipped for the job, I might use them, but they make designing MUCH more work than it has to be...[i]Originally posted by Charles [/i]Apperantly you didn't read my first post... I tried tables in the text reader and it worked fine. Even if some of the older text readers couldn't read them, doesn't it seem fair to program for the latest versions? I'm not programming for NN4, either... If I was, I would have to use tables, since div's don't work hardly at all. ? I don't even know if tables DON'T work in older screen readers. The only screen reader that I tried could read them, so if that is the only one that can, then everyone will probably buy that one anyway. Otherwise they can only view about 10%(or less) of the pages anyway. If you take a look at Yahoo's code, you will see tables. If you look at Amazon, it uses tables. So does Microsoft, Mozilla, IBM's Accessibility Center, and about every other site on the internet. If they can't view any of those, a screen reader would be virtually useless...
[B][font=georgia]So, for the sake of your own convenience you will make your page inaccessible to certain blind persons. An interesting choice. But it does make me wonder, what do you think a just God will do to those that scoff at the needs of the blind? I don't know about you, but my eyes are bad enough already.[/font] [/B][/QUOTE]
---------------------------------------</H2>
<H2> HEADER
---------------------------------------</H2>
Link 1 | Main Contents of the page<br/>
Link 2 | Can run long<br/>
... | Very long<br/>
Link n | Or may be short<br/>
Doesnt matter
<H2> What the length is
---------------------------------------</H2>
<H2> Footer
---------------------------------------</H2>
<i>
</i><h1 id="header">Header</h1>
<div id="middle">
<div id="left">
<p class="hide"><a href="#main1">Skip navigation</a></p>
<ul>
<li>Link 1</li>
...
<li>Link n</li>
</ul>
</div>
<div id="main">
<a name="main1"></a><!-- Backward compatibility -->
Lorem Ipsum crap crap blah.
</div>
</div>
<div id="footer">Footer goes here</div>
[i]Originally posted by AdamBrill [/i]
[B]Thanks for the links and info, nkaisare. Hopefully I can get one of those to work for me... ? I still think there should be an easier way of doing it, though. ? Maybe that will be in CSS 3. ? [/B][/QUOTE]
[i]Originally posted by Jona [/i][font=georgia]If you have followed correctly the HTML 4.01 Specification and the WCAG 1.0 then your page will work on [i]all[/i] browsers. It will not look the same on all browsers, but that's not the point. You didn't expect it to "look right" on a screen reader, did you? Well neither will it look the way you would prefer on Netscape 4. But that's an exceedingly small number of users, users that 1) can upgrade to any number of better graphical browsers and 2) can use your site just fine anyway.
[B]I want my site to fit [i]all[/i] standards, according to the W3C, WCAG, etc., but I also want it to work in all browsers. NN4, I assume, does not support DIV elements and CSS2. So what do I use after all of the above has been explained? [/B][/QUOTE]
[b]6.1 Organize documents so they may be read without style sheets. For example, when an HTML document is rendered without associated style sheets, it must still be possible to read the document. [Priority 1]
When content is organized logically, it will be rendered in a meaningful order when style sheets are turned off or not supported.[/b]
[i]http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-order-style-sheets [/i][/quote]
[i]Originally posted by AdamBrill [/i][font=georgia]Clearly, you didn't read my post last before that one of yours.
[B]Apperantly you didn't read my first post.....[/B][/QUOTE]
[i]Originally posted by AdamBrill [/i][font=georgia]Indeed, that's why I'm suggesting that you need to eschew tables for layout like the W3C says.[/font]
[B][D]oesn't it seem fair to program for the latest versions? [/B][/QUOTE]
[i]Originally posted by Charles [/i]
[b]1) Your experience of one screen reader does not tell you how all screen readers behave.[/b][/quote]
[i]Originally posted by Charles [/i]
[B]3) It would appear that you were testing an older style screen reader.[/B][/QUOTE]
[i]Originally posted by Charles [/i]
[B]http://www.saintjohns.ang-md.org/ [/B][/QUOTE]
[i]Originally posted by Jona [/i][font=georgia]Yes, that's why I included it, to show tables being properly used. Each table shows the relationship between or among tabular data. And take a good look at the table at
[B]Wait a second... This site uses [i]tables![/i] [/B][/QUOTE]
-------------------
Name Age Sex
-------------------
John 19 M
Jane 23 F
Jack 17 M
Jill 12 F
-------------------
-------------------------
Link 1 | Page content
Link 2 | goes here
... | ...
Link n | Tables used here
is improper use
as this is not a
tabular data
-------------------------
[i]Originally posted by Jona [/i]
[B][font=arial][color=maroon]Also, the html>body #left{} part is a fix for IE5.5.[/color] [/font]
[b]Jona[/b] [/B][/QUOTE]
A child selector matches when an element is the child of some element. A child selector is made up of two or more selectors separated by ">".
Example(s): The following rule sets the style of all P elements that are children of BODY:
body > P { line-height: 1.3 }[/quote]
[i]Originally posted by Robert Wellock [/i]yeah...
[B]You might treat me different though and take sympathy, which would be wrong. [/B][/QUOTE]
[b]Jona:[/b] NN4, I assume, does not support DIV elements and CSS2[/quote]
[i]Originally posted by Robert Wellock[/i]
[b]... I have dyslexia ...[/b][/quote]
[i]Originally posted by Robert Wellock[/i]
[b]I would say it is preferable to always at least consider Web Content Accessibility Guidelines 1.0 Level A whenever beginning a web-design project.[/b][/quote]
[i]Originally posted by Hester[/i]
[b]So either you make a page without styles for NS4, or you use have to use tables for layout.[/b][/quote]
Dyslexic people are visual, multi-dimensional thinkers. We are intuitive and highly creative, and excel at hands-on learning.
[/quote]
No single definition currently exists to adequately define dyslexia, including our own definition. The truth is, at present nobody really knows exactly what dyslexia is or what causes it. However, we do know much about the dyslexic condition and as a consequence dyslexia tends to be described in terms of its symptoms or alternatively in terms of what it is not. For example 'Dyslexia is not due to low intelligence' or 'Dyslexia is not a disease, it has no cure.[/quote]
[i]Originally posted by Robert Wellock [/i]
[B]For example I would find spoonerism (transposition of usually initial sounds in a pair of words, i.e. Bob Marley becomes Mob Barley) a little taxing if I were do mentally rather than looking at the "text" myself, but upon hearing application spoonerism I have no problem unscrambling the words.[/b][/quote]
[i]Originally posted by Robert Wellock[/i]
[b]Jona I will probably look at your site and try and interpret the WAI Content Rating if you are having trouble with the W3C WAI language and terminology. [/B][/QUOTE]
[i]Originally posted by Robert Wellock [/i]
[B]I would suggest you place , between the keywords within the <meta> element.
[/B][/QUOTE]
0.1.9 — BETA 5.17