Accessibility is one of the most overlooked aspects of Web Design for beginning developers. Not because they don't care, they just don't understand what all it takes to make a page accessible. In this module, we will discuss some techniques that can greatly improve the accessibility of your site.
Per HTML and XHTML standards, a DOCTYPE (short for “document type declaration”) informs the validator which version of (X)HTML you’re using, and must appear at the very top of every web page. DOCTYPE's are a key component of compliant web pages: your markup and CSS won’t validate without them. (A List Apart)
Dreamweaver automatically adds a DOCTYPE when you create a new page We use...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
IT should be the first line in your code.
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<div id="skipto"> Skip to <a href="#content">Content</a> | <a href="#navigation">Navigation</a> </div>
#skipto {
display: none;
}
Adding titles to your links allows you to add additional description to a link. It will typically show up as a tool tip and will be read by screen readers. All links do not need to have titles but it is a good idea to use them on navigation links and any link that needs additional description. To add a title to a link add the following to the <a> tag for the link.
<a href="about.asp" title="About Me">About Me</a>
ALT text is the text that will be read to a visually impaired individual viewing an image using a screen reader. Dreamweaver will prompt you to add ALT text when you insert an image into an HTML document. You can also ad ALT text to an image by selecting it and adding text to the ALT input in the Properties Inspector
As discussed in Module 8 marking up a document properly will increase its accessibility. Make sure that all content is marked up appropriately.
Additional Accessibility can be achieved by adding access keys or keyboard shortcuts to content within your site. For more information see: http://www.alistapart.com/articles/accesskeys/