Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9212333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:30:06+00:00 2026-06-18T01:30:06+00:00

To add more meaning to the HTML tag i am using data – *

  • 0

To add more meaning to the HTML tag i am using data – *. Actually i have learned this approach from jquery mobile. But recently i came across WAI-ARIA. It seems like it is almost similar to data – *. Can anyone explain me,how these are different and their browser dependency?

Useful Links

about WAI-ARIA

about data-*

UPDATE: Finally.. they both are different. They have some how similar syntax. That made me confused. I am accepting @Gajotres
answer. And see this you tube
video

for ARIA live. Match this video with @Gajotres’s answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:30:08+00:00Added an answer on June 18, 2026 at 1:30 am

    The data-* attribute

    The W3C HTML5 Working Draft states:

    “A custom data attribute is an attribute in no namespace whose name
    starts with the string “data-“, and has at least one character after
    the hyphen…”

    These custom data attributes allow you to create attributes to share data with scripts run on your own site. They are not to be used, or harvested, by generic software. You are not limited in how many custom data attributes you can specify. According to caniuse.com, “all browsers can already use data-* attributes and access them using getAttribute.”

    Due to good support, there are many examples of custom data attributes that already exist in the wild. If you have Dreamweaver CS5.5, you can create a jQuery Mobile (JQM) application. jQuery Mobile makes extensive use of custom data attributes for identifying roles of elements, themes, and many other things. Here’s an example of a JQM page:

    <div data-role="page" id="page" data-theme="b"> 
        <div data-role="header"> 
            <h1>Header</h1> 
        </div> 
        <div data-role="content">Content</div> 
        <div data-role="footer"> 
            <h4>Footer</h4> 
        </div> 
    </div>
    

    The role and aria-* attributes

    If you put effort into making your website accessible to users with a variety of different browsing habits and physical disabilities, you’ll likely recognize the role and aria-* attributes. WAI-ARIA (Accessible Rich Internet Applications) is a method of providing ways to define your dynamic web content and applications so that people with disabilities can identify and successfully interact with it. This is done through roles that define the structure of the document or application, or through aria-* attributes defining a widget-role, relationship, state, or property.

    ARIA use is recommended in the specifications to make HTML5 applications more accessible. When using semantic HTML5 elements, you should set their corresponding role. The basic structure may look something like this:

    <header id="banner" role="banner"> 
        ... 
    </header> 
    <nav role="navigation"> 
       ... 
    </nav> 
    <article id="post" role="main"> 
       ... 
    </article> 
    <footer role="contentinfo"> 
        ... 
    </footer>
    

    There is also a host of aria-* attributes to make your content more navigable and understandable. Things like aria-labelledby, aria-level, aria-describedby, and aria-orientation all make your content more recognizable. You can read more about it on the ARIA states and properties page.

    Conclusion:

    Stick with a data-* attributes. They are currently better supported. And the should be used as a replacement for older type of custom attributes. Also data-* attributes are created to be data holders while ARIA and ROLE attributes are created for better readability.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Assumptions , I can add a bit more meaning to my tests, but
Where this is coming from When I first learned jQuery, I normally attached events
When the user clicks add more options, a from is created with javascript document.getElementById('addmore').innerHTML
I want to add more functionality to a project I have that makes use
I'm trying to use fixtures to add more complex test data in order to
I'm using this piece of code I found ( http://impnerd.com/wordpress-hack-add-post-images-to-your-homepage ) to display the
How do you add multiple receipients, meaning more than one email in the TO:
I am trying to add more values to my row, but all the columns
How do I add more then one object for the same key? is that
Can I add more permit to a semaphore in Java? Semaphore s = new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.