Accessible HTML for X-out-of-Y Results Summaries

The project I am currently involved with at work has several paging widgets i.e. for image slideshows, search results, etc. that contain summary information such as “Showing 1/8″.

So how can this information be marked up in HTML in an accessible manner?

Well, I cannot remember where I got the inspiration for this from – if I remember I will post an update – but here is the HTML that I decided to use:

<span class="summary">
    Showing 1<abbr title="out of a total of">/</abbr>8
</span>

Pretty nifty eh?

Please let me know what you think.

Category: accessibility | Tags: , 3 comments »

3 Responses to “Accessible HTML for X-out-of-Y Results Summaries”

  1. Martin Bean

    Nice solution. I encountered this problem but gave up and reverted to using just slideUp() without the fade. I shall see if I can give this a try on a future project though!

  2. Martin Bean

    Whoops! Wrong post! Any-who, nice idea. Although I can’t say I’ve ever used a slash to designate number of pages; I’ve always just gone with “Page x of y” as it seems slightly more readable then separating page numbers by a slash.

  3. Ian

    @Martin Bean: Yes, agreed – although some clients can be rather anally retentive about such things :-)


Leave a Reply



Back to top