SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Jan 2007
    Posts
    967
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Is there any purpose for the role attribute?

    I was making a WordPress template and noticed the use of the attribute:
    role='main'

    Is there any purpose for this attribute? Most mark up would be self explanatory
    ie: <div id='main' > <div id='footer'>

    Thanks for your comments,

    E

  2. #2
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Potentially, theoretically it allows the author to annotate markup languages with machine-extractable semantic information.

  3. #3
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    The role attribute comes from ARIA.

    See this thread: http://www.sitepoint.com/forums/showthread.php?t=700590
    Ryan B | My Blog | Twitter


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •