Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 & XHTML role attribute question

Tags:

html

xhtml

Does the role attribute have defined values if so can you tell what they are?

Or can I create my own values for the role attribute if is so are they case-sensitive do they have to be letters can there be numbers or both?

Or can you have both defined values and user created values.

like image 922
sLeePy Avatar asked Nov 13 '10 08:11

sLeePy


1 Answers

A quick google turned up this: Semantics in HTML 5.

According to that site, the values of the role attribute are a space separated list of words from the XHTML Vocabulary.

like image 139
Joe D Avatar answered Sep 20 '22 22:09

Joe D