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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:06:51+00:00 2026-05-29T04:06:51+00:00

I like the data-* tags concept. Should i use it in non HTML 5

  • 0

I like the data-* tags concept.

Should i use it in non HTML 5 documents?
For example:

<li data-id="1001">Item A</li>

For indicating the inner application is (rather than the DOM id)

  • 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-29T04:06:51+00:00Added an answer on May 29, 2026 at 4:06 am

    The only difference is that your document won’t validate as HTML 4.01 (or whatever non-HTML5 version you’d be using). Nothing would actually break; browsers won’t care.

    Here’s a relevant quote by Paul Irish (source):

    The validator giving you errors doesn’t mean browsers won’t render
    your page as well as they can. In fact, what the validator thinks of
    your markup is very very different from what a browser thinks of it.

    In fact, it’s more like a browser is your friend who is super
    flexible, even when you were late to hanging out with him and
    everything you say to him sounds like a jumbled mess… He’ll totally
    understand and be as accommodating with your imperfections as
    possible.

    Mrs Validator, on the other hand, will mark up your papers
    with red pen again and again. Yes your thesis is perfect and it’s
    supported with paragraphs of justification masterfully. Such prose,
    such rhetoric! But no you forgot a comma and your “who” should be a
    “whom” and that semicolon absolutely should be an em-dash. Do it
    again! Meanie. 🙁

    Validation can be a useful tool to make sure you
    haven’t made any egregious errors. But don’t treat 100% valid markup
    as a goal. There are plenty of extremely well justified decisions you
    can make in your markup that will not validate, like the
    X-UA-Compatible meta tag. For more thoughts on validation, I
    certainly recommend Nicholas Zakas’s post:
    http://www.nczonline.net/blog/2010/08/17/the-value-of-html-validation/

    PS. as an example of how browsers are super accommodating.. You can
    use all sorts of HTML5 features even with an XHTML 1.0 Strict
    doctype. Browsers don’t really give a shit. They make it work.

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

Sidebar

Related Questions

I've got data in SQL Server 2005 that contains HTML tags and I'd like
I get the array data like this: $tags = $_GET['item']['tags']; if ($tags){ foreach ($tags
What are the best data structure for tags (not nfc or html). Like tags
I have a data object that looks like this: { 'node-16': { 'tags': ['cuda'],
I have been researching options for printing report-like data via a web application. Some
What should data look like before data encoding in: urllib2.Request(someurl,data) I tried [('name1','value1'),('name2','value2'),...] but
I have to choose between custom data tags or ids. I would like to
I'd like to write data to NFC tags such that I know that when
Is it possible to have something like Data Grid or Grid View control in
I'm using named parameters in a query to match fields in a map-like data

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.