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 1068113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:14:42+00:00 2026-05-16T20:14:42+00:00

My website is XHTML 1.1, and I had added ‘rel’ attributes to the <li>

  • 0

My website is XHTML 1.1, and I had added ‘rel’ attributes to the <li> and <div> tags on my page, to store data for a jQuery script on the page. When validating my page, I get the error: “there is no attribute ‘rel'”. So, what is the best way to store arbitrary data in HTML tags?

I am working on a comments page for my website. When a comment is entered, it is POSTed via AJAX, which returns JSON of all comments. I then look at the ‘rel’ values to see which comments are already on the page, and only add the new ones.

The jQuery code works fine, it’s just the ‘rel’ attributes don’t validate.

  • 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-05-16T20:14:43+00:00Added an answer on May 16, 2026 at 8:14 pm

    While it’s not XHTML spec, you could use the data-* attributes that are included in HTML5’s spec.

    http://html5doctor.com/html5-custom-data-attributes/

    If you want to remain fully XHTML 1.1 compliant, you’ll need to create a schema and include its namespace in the html element, where the schema defines the attributes you want to use, and the elements to which they apply.

    Extending XHTML

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

Sidebar

Related Questions

There is a website which is invalid XHTML (some closing tags are missing). I
I have created a static website using xhtml, css and jquery. I have got
I'm building a website with xhtml, css, jquery, php and mysql. In one of
I have a XHTML Strict Website 'main.php' with a normal Header where jQuery and
Can you create a complete website with only one page? So using XHTML, CSS,
I plan to create an interactive golf score card for my website (XHTML). (Btw.
I'm trying to build a standard compliant website framework which serves XHTML 1.1 as
I validated my client's website to xHTML Strict 1.0/CSS 2.1 standards last week. Today
Should I make a static website using xhtml, css and javascript first and then
When I tried to convert my website to xhtml, things went perfectly until I

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.