Results 1 to 2 of 2

Thread: What is the role attribute found in WordPress 2.8.5?

  1. #1
    TopDogger's Avatar
    TopDogger is offline Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    2,946
    Thanks
    341
    Thanked 883 Times in 671 Posts

    What is the role attribute found in WordPress 2.8.5?

    The Kubrick custom theme in WordPress 2.8.5 contains a scattering of a new attribute that I have not seen before. Does anyone know what the "role" attribute is supposed to do?

    Here are a few examples from the sidebar.php theme script.

    Code:
    <div id="sidebar" role="complementary">
    
    <ul role="navigation">
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  2. #2
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    The attribute describes the role(s) the current element plays in the context of the document. This can be used, for example, by applications and assistive technologies to determine the purpose of an element. This could allow a user to make informed decisions on which actions may be taken on an element and activate the selected action in a device independent way. It could also be used as a mechanism for annotating portions of a document in a domain specific way (e.g., a legal term taxonomy).
    Source and More Information - XHTML Role Attribute | W3.Org

  3. Thanked by:

    Aziz (31 October, 2009)

Similar Threads

  1. Useful Forum list with fast index and dofollow attribute
    By markwright in forum Forum Marketing
    Replies: 14
    Last Post: 5 November, 2012, 10:40 AM
  2. spammer found
    By GrilledChicked in forum Web Proxies
    Replies: 2
    Last Post: 19 October, 2010, 19:16 PM
  3. Role of No-Follow Links in SERP ?
    By jakki in forum Promoting
    Replies: 8
    Last Post: 12 April, 2010, 00:25 AM
  4. Replies: 7
    Last Post: 13 January, 2009, 16:11 PM
  5. Whos your role model
    By sam in forum General Chat
    Replies: 6
    Last Post: 16 December, 2008, 06:11 AM

Tags for this Thread

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
  •