So how do you add character encoding information?
Published: November 3, 2014
For HTML 4.01, you can indicate the character encoding in the head of your page using the following meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
ISO-8859-1 (commonly called Latin 1) is the default characters set for HTTP .1.1, and indicates a set of common English characters. Generally this is the most common character set indicated in web pages, and is likely to be the one you will use.
Creating valid HTML is one of the most important steps you can take when designing accessible websites. If you do not provide the appropriate character encoding this could lead to characters in your page not displaying correctly, which of course will have an impact on the accessibility of your content.
Make your pages validate when they include urls with ampersands (&’s) in them
Published: August 19, 2014
At some point you will run your web page through the W3C validator and get the error, “unknown entity section”; due to the presence of ampersands (&’s) in page link urls.
The validator assumes that this is an error because it expects an ampersand to be the beginning of an entity.
I had this very problem myself when creating the weblog links for my own CMS. For me the solution was simple; I just get the CMS script to turn all ampersands into their equivalent entities.
Unfortunately it is slightly more work to manually replace all ampersands in a page, but if you want your page to validate it is a chore you will need to attend to:
For all urls in web pages that contain ampersands, i.e., replace each ampersand (&) in urls embedded within your pages, with the equivalent entity & , e.g.,
Needs to be modified to,
Another validation problems solved.
How to get your XHTML pages to validate when using the blockquote element
This is a tip for those marking up their web pages by hand using XHTML strict. If you are the sort of person using XHTML it is likely that you will want to ensure your pages validate when tested with the World Wide Web Consortiums markup validator.
Would it surprise you if I said the following code doesn’t validate,
Blah, blah, blah and so on..
It looks simple enough – what could be wrong with that? I came across this very problem – and spent a half hour trying to figure out why it didn’t validate. I investigated various options – including thinking that I must have some strange, invisible and illegal characters in my quoted text somewhere. After scratching my head for a while I looked at the specifications for XHTML and found the answer.
To validate as strict XHTML, you must add a block-level element around the text within the <blockquote> tag, like this:
<p>Blah, blah, blah and so on..</p>
Problem solved – now the markup validates – and so will yours the next time you use blockquote in your XHTML documents.
Test the accessibility of your web page with your own web browser
It seems to be a little known fact – but it is worth remembering – that almost all Web browsers allow you to change the text size, font, colour and background colour of the web pages you visit.
Try experimenting with the setting in your own browser; check how your pages look with much larger or smaller text, or a different text/background combination. And even more importantly, check if the page design allows these attributes to be altered at all.
If they can’t be altered (perhaps because you have spent time trying to force the page to look the same on everybody’s screen), then this should alert you to the fact that your pages may not be as accessible as you thought.
An important aspect of accessible web design is giving users the ability to change the presentation of the page to suit their own needs – if they can’t do that then this should alert you to accessibility issues with your site.
Website and document accessibility auditing
If you require a more comprehensive and authoritative audit of your website or your documents (for example, checking the accessibility of your PDF’s) then please get in touch as that is exactly what we do. We’ve been very very good at it since 2005.
Or phone to talk over your ideas: 0141 576 9446.
Web Site Accessibility and Web Standards – Get More Visitors and Make More Money
Published: August 8, 2014
Most website commissioners are not interested in Web Standards or Web accessibility – that is clear from the results of DRC Research carried out in the UK in 2004. The research highlighted the appalling lack of accessibility of most UK web sites – with 81% labelled by researchers as ‘impossible’ to use by many disabled people.
So if you are a web developers, don’t waste your time trying to get clients excited by your ethical approach. Instead just get on with the job of creating accessible standards based websites — and tell them you use development methods that will help them attract more visitors — and help them make more money.
Use Web Standards — money can be saved and money can be made
Pages built using web standards tend to be smaller and they tend to load quicker. This leads to the first and most obvious saving – lower bandwidth costs.
What is not so obvious, however, is that faster loading pages can also generate additional traffic and revenue. For example, when Multimap.com redesigned their site using web standards they estimated they saved 40,000 Gb of bandwidth per year – but they also found that their advertising revenues increased. The quicker loading pages encouraged people to spend more time on the site – and consequently advertising revenues went up.
Accessible websites make more money
Julie Howell, Digital Policy Development Officer at the RNIB, talking about one of Tesco’s websites — a website designed to provide easier access for blind and visually impaired people,
“Many fully-sighted people find Tescoís simply designed Access site offers them a better user experience than any other supermarket website. Developed for vision-impaired users, it now takes a surprising £13 million a year, and seems to attract a much wider audience than originally intended.”
Accessible websites attract more people
Apart from the 10 million Disabled people in the UK and 50 million in America, accessible websites will be easier to use by older people, people with slow connections or older technologies and people with low literacy. Older people are the fastest growing group of new users in many countries. As many older people have multiple impairments, accessible sites are likely to be more attractive to this group.
Disabled people and older people have money to spend
In the UK Disabled people have £50 billion of disposable income, in the USA they have US$175 billion. Older people currently control over 80% of the wealth of the UK. As was demonstrated by Tesco — making your website even a little more accessible not only brings you good press – it attracts the attention of the community of older people and disabled web surfers – who spend their money on your website rather than your competitors.
Web Standards means shorter development times and re-usable content
Production and maintenance costs are lower when content is package in highly structured ways, for example, when standard (X)HTML is used. Separating the structure of content, i.e., headings, lists, images, paragraphs, from the way that content is presented opens up opportunities to create multiple ‘views’ of that content.
As a result, content can be optimized with less effort for delivery on hand-held devices, formatted for printing or delivered to assistive devices such as screen readers.
When the time comes around for a new design, it is easier to substitute a new style sheet than to spend hours changing hundreds of font tags and background colour attributes.
Web standards means you don’t waste time battling with Browser quirks
When using Web standards there is no need to produce multiple versions of pages to cope with the quirks of different browsers. The time and effort previously required to create and maintain ‘browser sniffing’ scripts can now be re-deployed to add value to the site for visitors.
Web standards helps you break free from proprietary technologies
Using Web standards can free organisations from being captives of browsers dependent on proprietary tags and rendering behaviour. For example, IBM’s move to Open Source desktop clients has reportedly been held back due to their web based systems being built on top of the non-standard Internet Explorer web browser.
Less errors in pages means less time dealing with complaints
Without working to standards – it is not possible to check for markup errors; there are no rules to check against. Standards base web pages can be checked against code validators such as the W3C validator – highlighting any errors – and allowing you to get those errors fixed. If you website works for more people on more browsers you won’t have to spend time replying to emails from people complaining your site doesn’t work.
Content is future-proofed and compatible with older browsers.
Pages built using web standards will display more consistently across browsers and platforms, including older browsers. Your content will not necessarily look the same in old ‘non-standard compliant’ browser but the bottom line is that the content will still be available.
Greater search engine visibility
Search engines are able to index web pages more accurately if the content on those pages is well structured. For example, when keywords appear in page headings many search engines give extra weight to those words when indexing the page. A web page where headings are improperly marked up is likely to suffer in the search rankings compared with a page with the same content that is marked up correctly. An accessible website will have alternative text for images and multimedia – and this will provide more text be indexed by search engines.
Accessible websites designed using Web Standards leads to real measurable benefits: more visitors, increased income, decreased cost, greater search engine visibility, faster loading and easier to use pages. Sell the benefits to websites commissioners, not the ideology.
This article was written by Jim Byrne, a Web site accessibility specialist since 1996. He is the founder of the Worldwide Guild of Accessible Web Designers and author of the QnECMS – the accessible CMS.
Contact us now if you are interested in having your own accessible website built using Web Standards.