Start learning with our library of video tutorials taught by experts. Get started

Web Accessibility Principles

Adding table captions and summaries


From:

Web Accessibility Principles

with Zoe Gillenwater

Video: Adding table captions and summaries

>> We've seen how TH elements, table header cells, can tie related pieces of related information in a table together. Now let's look at the caption element and summary attribute of tables. If you're following along with the exercise files, open government.html in Dreamweaver. It's located in the 07_03 folder of the chapter seven exercise files. This page has not been changed from when we last worked on it. You may remember that there was a table of meeting minutes downloads on this page.
Expand all | Collapse all
  1. 2m 0s
    1. Welcome
      1m 3s
    2. Using the exercise files
      57s
  2. 33m 15s
    1. What does accessibility mean?
      5m 51s
    2. How does accessibility help your users?
      3m 30s
    3. Experiencing a website via a screen reader
      5m 46s
    4. How does accessibility help you and your clients?
      3m 9s
    5. Overview of Section 508 standards
      5m 51s
    6. Overview of WCAG standards
      6m 4s
    7. Understanding consistency and semantic markup
      3m 4s
  3. 54m 31s
    1. Understanding screen readers and accessibility tools
      6m 12s
    2. Getting accessible browsers
      5m 41s
    3. Customizing Firefox for accessibility testing
      5m 53s
    4. Using custom accessibility toolbars
      5m 28s
    5. Using Fangs and the Color Contrast Analyzer
      5m 30s
    6. Accessibility tools to bookmark
      5m 53s
    7. Using automated accessibility checking tools
      4m 57s
    8. Setting up the JAWS screen reader on Windows
      6m 42s
    9. Using the VoiceOver screen reader on Mac OS X
      5m 52s
    10. Setting Dreamweaver accessibility preferences
      2m 23s
  4. 26m 12s
    1. Avoiding tables for layout
      3m 30s
    2. Using CSS for layout
      2m 40s
    3. Creating a fixed-width layout
      5m 51s
    4. Creating an elastic layout
      3m 51s
    5. Creating a liquid layout
      3m 4s
    6. Customizing a liquid layout
      7m 16s
  5. 1h 6m
    1. Specifying the language
      3m 43s
    2. Setting page titles
      2m 16s
    3. Setting headings and paragraphs
      9m 55s
    4. Styling headings
      9m 56s
    5. Hiding section headings from sighted users
      6m 41s
    6. Styling text for readability
      6m 41s
    7. Ensuring proper color contrast
      6m 36s
    8. Creating text emphasis
      4m 29s
    9. Indicating quotations
      4m 29s
    10. Creating basic lists
      4m 16s
    11. Styling lists
      7m 15s
  6. 1h 15m
    1. Using lists for navigation
      6m 45s
    2. Creating a horizontal navigation bar
      13m 25s
    3. Creating a vertical navigation bar
      11m 44s
    4. Adding skip navigation links
      12m 0s
    5. Hiding skip navigation links
      6m 17s
    6. Proper link text and title attributes
      6m 11s
    7. Opening new windows
      4m 28s
    8. Accessibility limitations of fly-out menus
      6m 30s
    9. Creating an accessible fly-out menu
      8m 38s
  7. 27m 55s
    1. Proper ALT text for navigation images
      4m 57s
    2. Proper ALT text for decorative images
      5m 19s
    3. Adding ALT text to an existing site
      6m 9s
    4. Adding ALT text to image maps
      5m 58s
    5. Describing complex graphics
      5m 32s
  8. 34m 1s
    1. Using tables for data
      3m 0s
    2. Creating header cells
      4m 5s
    3. Adding table captions and summaries
      9m 9s
    4. Styling tables
      5m 19s
    5. Applying header cells to complex tables
      6m 52s
    6. Adding id and headers attributes
      5m 36s
  9. 42m 7s
    1. Understanding form accessibility issues
      3m 7s
    2. Labeling form fields
      6m 9s
    3. Adding fieldsets and legends
      4m 42s
    4. Moving forms out of tables
      3m 44s
    5. Cleaning up a form's appearance
      4m 53s
    6. Aligning labels and fields using CSS
      9m 39s
    7. Indicating required fields
      6m 15s
    8. Dealing with CAPTCHA
      3m 38s
  10. 7m 29s
    1. The Text-Only technique
      3m 21s
    2. The Access Keys technique
      2m 35s
    3. The Tab Index technique
      1m 33s
  11. 18s
    1. Goodbye
      18s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Web Accessibility Principles
6h 10m Appropriate for all Oct 16, 2007

Viewers: in countries Watching now:

Accessibility on the web has been an issue for over a decade, and it remains a crucial--but often overlooked--element of web design. Instructor Zoe Gillenwater explains the concept of accessibility as it applies to the web, and describes how it affects the audience. She also covers how to set up accessibility testing, and how to apply accessibility principles to new and existing sites using standards-compliant markup and CSS. Exercise files accompany the tutorials.

Topics include:
  • Understanding Flex programming languages
Subjects:
Web User Experience Accessibility
Author:
Zoe Gillenwater

Adding table captions and summaries

>> We've seen how TH elements, table header cells, can tie related pieces of related information in a table together. Now let's look at the caption element and summary attribute of tables. If you're following along with the exercise files, open government.html in Dreamweaver. It's located in the 07_03 folder of the chapter seven exercise files. This page has not been changed from when we last worked on it. You may remember that there was a table of meeting minutes downloads on this page.

Scroll down in design view. You'll see a table of four rows, but notice that there's no row at the top of the table with table header cells. Let's insert a new table with better structure into the page and paste our data our of this old table into the new, improved one. Click at the end of the paragraph preceding the table and hit enter or return to start a new line. Then go to the insert menu in Dreamweaver and click on table.

In the table dialogue box, enter 5 for the number of rows. For the number of columns, enter 4. Leave the table width, border thickness, cell padding and cell spacing fields blank. For the header option, choose the both image. This will set TH cells on both the columns and rows of our table. Under accessibility, click inside the caption field. The caption is used to provide a brief description of your table.

It's basically its title or label. In this field, type recent meeting minutes. Don't select anything for the line caption option. Again, this is a formatting issue that is better controlled in CSS. Click inside the summary field. A table summary can be used to provide even more information than would fit in a caption. There's no limit to the length of a caption, but you just want it to be a brief, clear description of what the table is about.

If you think a more extended explanation of your table would be useful to screen reader users, the summary attribute is where you can add that. The icons in this table might make it a little bit confusing. Having icons in a table to click and download documents might be a little bit confusing for screen reader users, so we will write a summary for this table. Simply type a longer explanation of the purpose of the table. ( Typing ) >> I've typed this table provides the minutes from the last four public meetings to download in Microsoft Word DOC and Acrobat PDF formats.

Now click okay in the table dialogue box. The empty table is added to the page with its caption above it. If we scroll down you can see that the summary is not displaying on the page. It's not used by visual browsers, but it's there in the code if the screen reader or other device wants to take advantage of it. Now let's type our headings into the first row of the empty table. Click inside the first cell of the first row type the text type of meeting.

Click inside the second cell and type date. Then the third cell and type Microsoft Word. Then the fourth cell, type acrobat PDF. Now let's drag each of the meeting descriptions out of their cells and into the type of meeting column.

Highlight over town council then click on the highlighted text and drag it up into the first cell of the second row. You'll see that it, too, is bold. That's because we specified that we wanted headings not only on the columns, but also on the rows. The name of each meeting is really acting as a label for the cells further along in the row, so that's why we've chosen to make these cells headings as well. Next highlight over zoning department in the old table, click on it and drag it up to the first cell in the third row.

Then highlight over and drag town of Wardscott public schools into the first cell of the fourth row. And finally, highlight over town council in the old table and drag it up into the first cell of the last row of the new table. For the remaining cells, we can copy them into the new table more quickly by clicking in the first date cell and without releasing the mouse dragging diagonally down to the last PDF cell. This highlights all 12 of the remaining cells with the thick black border.

You can now release your mouse and hit control C or command C on the keyboard to copy the block of cells. Now you need to highlight over the same cells in the new table. Click in the cell beneath the date header cell. Keeping the mouse button pressed, drag diagonally down towards the last cell in the table. When the block of these 12 cells is highlighted with a thick black border, you can release your mouse and now hit control V or command V on the keyboard to paste in the old cells.

Now we can delete the old table. Simply highlight over it and hit backspace or delete. There's one more accessibility enhancement we may want to make to this table. Table heading cells can have the ABBR attribute added to them. This stands for abbreviation and it provides alternate text for the heading cells. Usually that alternate text is shortened text. The ABBR attribute is most useful in very large tables. A screen reader may read out the content of a heading cell before it reads out the content of the data cell that it is currently in.

So for instance, in this table, if the screen reader was in the cell 5/23/08 it might read date, town of Wardscott public schools, 5/23/08. This can be very helpful, but it can also be frustrating in a very large table if the text of the heading cells is very long and has to be repeated over and over again. In these cases you would use the ABBR attribute on the long table heading cell text. The full text of the heading cell would still be read when the table was first encountered, but when the heading is read out before the data of individual cells, the abbreviated form would be used instead.

So click inside the type of meeting cell. To select the entire cell go down to the tag selector at the bottom of the document window and click on the TH tag. Right click or control click on the TH tag listed in the tag selector and select quick tag editor. The full HTML of the currently selected tag is shown. Place your cursor before its closing bracket and type a space and immediately a menu of possible attributes appears.

The ABBR attribute is the first in the list. Double click it and it is added to the cell. For the value in between the quotation marks, type the word type. Hit enter or return to accept the changes to the cell. So what we've done here is set a shortened version of this heading cell text. Type of meeting would be read out when the table is first encountered, while the abbreviation that we entered would be all that was read before individual cells.

You don't have to use the ABBR attribute just for shortened text, however, there may be times where you would want to use it to provide longer text because that would be more understandable to screen reader users. For instance, if you had a table with math symbols as headings, you could use the ABBR attribute to type out the word that corresponds with that symbol to make sure that the screen reader will read the correct text even if it doesn't know what that specific symbol is.

So now we've looked at many of the HTML elements and attributes that can make a table more accessible. Next we'll talk about how to style tables so that you can use the correct semantic markup, but keep it consistent with your design.

There are currently no FAQs about Web Accessibility Principles.

Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Web Accessibility Principles.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked