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

  • SEARCH
  • Home
  • 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 8327107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:59:38+00:00 2026-06-09T00:59:38+00:00

I would like to understand if using pre-made elements withn an HTML tag consider

  • 0

I would like to understand if using pre-made elements withn an HTML tag consider to be valid. I have start to use it all over my HTML to make my code become more generic and less breakable. However I am unaware if this is valid and supported by all browsers.

For example , I am doing something like that :

<a class="item-class" href="...' itemname="something">

now assume I am doing an jquery onclick event for all item-class I can do

$(this).attr("itemname")

kind of passing parameters to jquery events.

  • 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-09T00:59:40+00:00Added an answer on June 9, 2026 at 12:59 am

    What you should be using for this sort of meta data, as per the HTML5 spec is the data-* attribute. It works basically the same, it’s just you use `data-itemname=”itemname” instead.

    The is also a proper jQuery function for editing/retrieving these values:

    <a class="item-class" href="...' data-itemname="something">
    $(this).data("itemname")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a Rails application and would like to understand when to use
I am using Rails 3.1.0 and I would like to understand why the following
in an iPad application using XML I would like to understand if using recursion
I would like to understand advantages of using RESTKIT/ASIHTTPREquest libraries over the traditional NSURLconnection
I am using Ruby on Rails 3.0.7 and I would like to understand how
I solved my problem by using CGColorGetComponents , but I would like to understand
I would like to understand the ServiceBehavior.ConcurrencyMode property. Consider the following code on service
I would like to understand the Algorithm/implementation of the tag cloud. In tag cloud
I would like to understand what effect has enablig the flag TextFormatFlags.TextBoxControl when using
I have been develop API using asp.net with C# back-end code. i would like

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.