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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:48:24+00:00 2026-05-23T07:48:24+00:00

I have various html tags (related to jquery mobile) that Visual Studio is flagging

  • 0

I have various html tags (related to jquery mobile) that Visual Studio is flagging as not valid attributes: For exmaple:

<div data-role="page" id="my_id" data-theme="b" data-position="fixed">

Gets amongst others:

Validation (XHTML 1.0 Transitional): Attribute 'data-role'
is not a valid attribute of element 'div'

As you know, data-* are valid attributes of div in HTML 5.

I’m not sure how this is validated, though I think via DTDs and xmlns, so the head of the page is the default auto generated by Visual Studio:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

I know they are only warnings, but my experience is that if you leave lots of warnings that are invalid, then all the warnings that are valid get lost in the middle.

Is there any way to tell Visual Studio that these warnings should not be shown without completely disabling html validation?

(Visual Studio 2010 if it is relevant.)

  • 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-23T07:48:25+00:00Added an answer on May 23, 2026 at 7:48 am

    You should install the Web Standards Update and then switch to HTML5 as your default schema:

    The settings dialog for changing your default schema

    In addition, you should not use the XHTML 1.0 transitional opening incantation when using HTML 5 attributes. Instead, use the usual HTML5 one:

    <!DOCTYPE html>
    <html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with matching the html attributes (in a various html tags) with
I have a HTML fragment which contains two anchor tags in various parts of
I have various pieces of generated HTML/JS that I load into Activity with WebView#loadDataWithBaseURL.
I'm trying to fetch some HTML from various blogs and have noticed that different
So I have an html page. It's full of various tags, most of them
I have various HTML strings to cut to 100 characters (of the stripped content,
I have created web pages where am using pixel to position various html elements.
I have a php script (generator.php) which generates certain HTML/XML/SVG depending on various conditions.
We have various php projects developed on windows (xampp) that need to be deployed
We have various servers that have many directories shared. It's easy enough to look

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.