|
Introduction to Accessible Design with Dreamweaver MX 2004.Covers: setting up Dreamweaver for accessible design, creating a site, creating new pages using recognized HTML grammars, and using accessibility features to: insert images with ALT tags, create accessible tables, find and use accessible layouts, set embedded and in-line styles, and check the page for accessibility errors.
Setting Accessible Preferences.Before you begin designing in Dreamweaver, you should set your preferences to insure that the code will conform to a recognized grammar and that you will be prompted to use the accessibility features as you design. Following the steps below, you will change the Dreamweaver MX 2004 defaults to those settings recommended by the WAC. Note that not all settings may be required to create accessible sites, but are recommended best practice for consistent design. Preferences -- General
Preferences Accessibility
Preferences Code Format
Preferences New Document
Preferences -- Validator
Using the Practice WebIf you want to follow-along with this tutorial and build the sample page, you'll need to download and unzip the Practice Web Site Files [zip] (requires unzip software). Unzip the file to a location on your C: drive that you will remember and identify that folder in your site definition (as described below). Defining a SiteDreamweaver is designed to be a web site manager, not just a web page creator. Thus, it works best when you have defined the parameters of your site. Once you do, Dreamweaver will keep track of your links and files to insure that you don't create broken links or links to files that are outside your site folder. NOTE: Before you begin this step, you need to create a web site folder and an images folder where you will store your site files. For this tutorial, we will create these folders in the Create a New Site.
Unless you have changed the default, Dreamweaver opens a wizard to help you create your site. For this lesson, however, we are going to use the
Familiarize Yourself with Dreamweaver.
Pictured Above: calloouts identify the main design view, view toggle buttons, properites box, CSS styles box, and site files management windows. Creating an Accessible PageIn this tutorial, we will create a sample department page, based on an existing page from the Department of English at Ohio State University. Our page will contain a variety of elements, frequently used by web designers, which require additional coding for accessibility. These include: images both decorative and informational; client-side image maps; tables layout and data; skip navigation link, and in-page (embedded) styles. Let's begin by taking a look at the page we will create:
Tutorial Page: example.htm Notice that there are three sections to this page: the header with logo and main navigation, the body with two columns of text, and the footer with links to College and OSU home page and accessibility statement. Don't worry, the text has been provided for you. No need to retype! Practice PageWe'll begin by opening a page that contains the content of our final page without any of the necessary formatting. This page is called practice.htm. Here is how the practice page looks:
The header layout table has already been created for you, because it involves a bit more complicated formatting (which will be covered in our next Dreamweaver workshop). Let's begin by creating the other two layout tables for the body and footer and moving the text into those tables. Header Information and META DataIt is important to include the proper header information on each of your pages. Dreamweaver sets much of this by default. Header information is placed between the open and close
Layout TablesLayout tables are used solely to distribute content to various areas on the screen. They are different from data tables, which are used to associate like data and help users interpret the data. Layout tables should be as ubiquitous as possible if inserted properly screen readers will ignore these tables and go directly to reading the content they enclose. To insert a table:Practice.htm: Place your cursor before the first line of body text ("
Note: Dreamweaver remembers your last settings used when inserting a table and displays them again. Once you have inserted a table, you can use the properties box to change the table formatting: Accessibility tip: Avoid using the properties box to change table background color, border width or color, or background image. Formatting should be done using Cascading Style Sheets whenever possible. Data TablesData tables require special handling to be created accessibly. Most important, data tables need clearly defined header cells, which help screen readers identify which data belongs in which column and which row of data is currently being read. Dreamweaver makes it easy to create simple, accessible data tables. Insert a Data TableThe steps for inserting an accessible data table are the same as those for inserting a table (see above). However, you need to add more information in the table dialog box.
Pictured above : Callout one: Data tables require both row and column headers. Callout two: Best Practice: include a caption/title. Callout three: Data tables must have a summary. Avoid lengthy details.
Summaries should be as brief as possible (because they will be read each time the screen reader encounters the table on the page) and should not repeat information that is in the caption or description that appears within the body of the page. If a detailed explanation of the data appears in the body text, the summary can be much shorter (e.g. "Clinical research results by unit, cost, and outcome."). For our example table, we need a slightly more detailed description: A collection of professional societies and associations in fields related to Early American Literature. Includes society name (with link), description, and conference information. Headers can be created in two ways. For simple tables, the cell that
contains the header is designated by the The more complex method of assigning table headers uses the " Practice.htm: Be sure to add your column headers " Images and ALT tags.Every image decorative, informational, or functional (button) needs to have an alternative description or ALT tag, which a screen reader uses to convey information about the image. Because these descriptions are read each time the image is detected, they should be kept short (64 characters or less). When a longer description is needed, designers can use the "longdesc" attribute to point to a page where more detailed information about the image or graphic is provided. Types of images:Image Links (buttons/logos): When the image is "clicked," a link is activated. In these cases, the ALT tag also serves as the link description and must follow the same guidelines for good link text. Don't use repeating phrases like "click here" or "go." Avoid vague descriptions such as "link" or "main." It is also usually not a good idea to rewrite the URL of the link in the ALT tag. Our two image links appear at the bottom of the Practice.htm page. The ALT tags are " Accessibility tip: When using both an image-link and text-link leading to the same location, wrap the Decorative Images: Images used to add color, visual interest, or design to the site do not need descriptive Accessibility tip: Make your default choice the "empty" ALT tag. Then go back and add ALT tags to only those key graphics that add content or function as well as visual appeal. Informative/Functional Images: Graphs, charts, logos, pictures, product snapshots, scans of books or other materials, covers, drawings of course materials, and many, many other images used on web sites that convey information require descriptive ALT tags that convey the same information in text to visually impaired readers. Some informative or functional images require only simple descriptions
(e.g "President Holbrook addresses graduates."). However, more detailed
and complex images may require lengthy descriptions. These more detailed
descriptions should be placed on a separate HTML page and should be linked
using the Image Maps: Client-side image maps are an easy way to assign different "clickable" or "actionable" areas on a single image. For example, in an image on the top of a department page: clicking on the left-side of the image leads to the department home page, clicking on the middle to the department contact, and clicking on the right directs you to the accessibility page. Each map area must have its own alternate text. You should also assign an ALT tag to the image itself, behind the map. Usability tip: Use caution when inserting image maps to avoid "mystery meat navigation" where users must guess which part of the map leads to which location or must search to find the clickable area on a given image. Insert an Image
Create an Image Map
Skip Navigation LinksMany web designs employ a set of repeated navigation links that appear at the top or to the left side of the page. Whenever the page is loaded or reloaded, screen readers must read all of this repeated content before getting to the main content at the center of the page. An in-page link (also called a bookmark or anchor) gives the user a quick way to "jump over" or "skip" this repeated navigation and jump to the main body of the page. Since skip navigation links are primarily for use by visually impaired users browsing with a screen reader, they do not have to be visible or accessible to other users (although they may be). Many designers hide the skip navigation link using an invisible GIF or by coloring the text of the link the same color as the background. Our practice site uses an invisible GIF.
Insert a Skip Navigation LinkThere are two parts to a Skip Navigation link: the link and the anchor where the link is pointed to. It is usually a good idea to insert the anchor first, then create the link. Insert an Anchor
Insert a Link to the Anchor
Formatting with Style SheetsStyle sheets are the preferred way to add formatting to your web pages, because styles offer the most formatting control for the designer and the most flexibility for the user. What is CSS?CSS stands for Cascading Style Sheets. Styles define how to display HTML elements and are normally stored in a separate file (###.css) and linked to the HTML document that uses those styles. Multiple style definitions will cascade into one, allowing users to customize their experience with your web pages without interfering with the content. Forms of StylesCascading styles can be created in several different forms. In-line styles: appears inside the HTML element. For example to center some text, you may choose to use the "align" formatting attribute inside the P element. <p align="center">This text will appear centered.</p> Internal styles: style definitions are stored in the HTML document, located between the HEAD element tags. For example, if you wanted the body of your page to have a blue background and your text to be yellow, you might have a style that looks like this: <head> External Style Sheet: style definitions are stored in a separate CSS file (name.css). In the HEAD element of the style sheet is linked to the document. <head> Browser Default: no styles are defined. Pages will use the settings customized by the user or the default settings included with the browser software. This tutorial uses the internal or embedded styles. Linked styles are a better option for site management to insure consistency across pages. However, linked styles requires more knowledge of CSS design. For more, see the WAC handout: "WAC Workshop: Cascading Style Sheets." You can practice building CSS online using the excellent W3Schools CSS tutorial. Create a New Embedded StyleManaging styles in Dreamweaver requires that you have the
Practice.htm: Note that some styles have already been created for you in the practice file. These styles format the menu links at the top of the page and require more advanced knowledge of CSS to create. For this tutorial, you will need to redefine the
Define Your New Style
Applying Your Custom StylesIf you reformat an existing HTML tag, you do not need to do anything special to apply the formatting. For custom styles, you must apply the style to the text or paragraph. In most cases, you want the style to apply to the entire paragraph. Avoid using the Apply a style to an entire paragraph.
Apply a style to a section of text.
Styles can be applied to any tag Preview Your PageDreamweaver includes a "Preview" feature that allows you to view your page in a web browser to see how it looks as you design. However, each time you preview your file, Dreamweaver creates a temporary file image of your page and it can quickly become confusing with so many oddly named temporary files in your site folder. The WAC recommends opening your browser externally and opening the file separately from Dreamweaver. Then, just click
Validate Your PageValidate your HTML insure your code follows the formal grammar defined by your DOCTYPE statement. Use the W3C's Markup Validator. Validate for Accessibility insure your page meets the minimum standards for accessible web design. Use the free version of Bobby. Hint: for simple validation choose "U.S. Section 508 Guidelines." For more complete validation, choose "Web Content Accessibility Guidelines 1.0."
|
OSU Web Accessibility Center (WAC)
1760
Neil Ave
150
Pomerene Hall
Columbus,
Ohio
43210
Phone: (614) 292-1760
Fax: (614) 292-4190
E-mail: webaccess@osu.edu
For questions or problems with this site, including incompatibility with assistive technology,
email the WAC Webmaster.