RE: Creating custom landmarks

Landmarks can have labels using aria-label or aria-labelledby attributes:

http://www.w3.org/TR/wai-aria/states_and_properties#aria-label

http://www.w3.org/TR/wai-aria/states_and_properties#aria-labelledby 

http://www.w3.org/TR/wai-aria/roles#namecalculation 
 
If you have more than one landmark role of the same type you should use labels to identify and describe the sections 

Good design should have both landmarks and headings.

Jon



-----Original Message-----
From: Devarshi Pant [mailto:devarshipant@gmail.com] 
Sent: Monday, December 12, 2011 2:07 PM
To: w3c-wai-ig@w3.org
Subject: Re: Creating custom landmarks

HI -- I believe you only have a set of pre-defined roles to play with, and these are especially helpful when you have a design that agrees with the design these roles were supposed to work with. I see your point though - as an example consider a complex website with three distinct navigation menus with a make believe roles list of Banner, Main, Navigation Sales, Navigation Engineering, Navigation Advertising, Content Info, etc.
Roles may help some screen reader users, but again, if you have a well thought out heading structure, landmark roles may not be necessary, as a proper heading structure helps everyone. When you say your site is long and complex, does it have headers before *complicated sections*?

Thanks,
Devarshi

Received on Monday, 12 December 2011 21:16:11 UTC