Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any examples of sites that use the role attribute in HTML5/XHTML?

Tags:

html

xhtml

role

I've been looking at the use of the role attribute for HTML5/XHTML in the W3C: http://www.w3.org/TR/wai-aria/roles and was wondering if there are any sites that use this or examples of how/when to use the role attribute.

I understand how it works, but would like to see how other people have used in their sites/projects.

Also, am i correct in assuming that you need to use the values defined in the link above (e.g article, columnheader, definition, directory, document etc), or are you also able to create your own values/definitions for the role attribute?

like image 283
Hamish Rouse Avatar asked Oct 21 '10 00:10

Hamish Rouse


1 Answers

Majority of Yahoo websites use it http://www.yahoo.com

YUI encourages role attribute, if you are not sure how to put role, this tool might help you. http://developer.yahoo.com/yui/grids/builder/

You can also find role attribute on my websites e.g http://www.hereismystuff.com (or purplegene.com etc)

like image 116
Markandey Singh Avatar answered Oct 08 '22 21:10

Markandey Singh