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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:58:14+00:00 2026-06-12T06:58:14+00:00

I was wondering this. Why not HTML 4.x or even 5? <!DOCTYPE html PUBLIC

  • 0

I was wondering this. Why not HTML 4.x or even 5?

<!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">

What really should I be using instead, if any?

  • 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-12T06:58:16+00:00Added an answer on June 12, 2026 at 6:58 am

    I believe we all agree why HTML5 wasn’t chosen as the default standard for web pages in Visual Studio 2010. With the release of the 2010 version, HTML5 wasn’t even supported, and only some features were implemented in SP1.

    So the question is why chose XHTML over HTML 4.01 (and then why chose different versions of XHTML over others).

    First of all, this is an excerpt from a MSDN article regarding XHTML support ( http://msdn.microsoft.com/en-us/library/exc57y7e(v=vs.100).aspx ):

    Creating Web pages that are conformant with XHTML standards has several advantages:

    • It guarantees that the elements in the pages are well formed.

    • Because many browsers are increasingly moving toward supporting XHTML, creating pages that conform to XHTML standards helps ensure that your pages render consistently in all browsers.

    • Using XHTML helps to make pages conform more readily to accessibility standards.

    • XHTML is extensible, allowing the definition of new elements.

    • An XHTML page is much easier to read programmatically for situations in which the Web page is processed by a computer instead of being read by users, and the document can be manipulated using transformations.

    Now, how do you choose between different versions of XHTML (1.0 Transitional, 1.0 Strict and 1.1)?

    The main difference between XHTML 1.0 Transitional and Strict is the shift towards more semantic markup (inclusion only of structural elements, and not styling elements, like <font> or <pre>). Transitional still supports these elements and attributes (like <img> width and height) because it is designed for backwards-compatibility (hence the name Transitional) while Strict doesn’t, and encourages the use of CSS instead of markup.

    So, the idea here is that you use Strict when you have understood that you need to separate style (CSS) from markup (HTML).

    But why not chose XHTML 1.1 (also supported by VS 2010) instead of XHTML 1.0 Strict? Aside from some minor tweaks (removal of the "name" attribute for <a> and <map>, the removal of the "lang" attribute in favor of "xml:lang" and the addition of the ruby element) there are no major differences when it comes to specific markup. The major downside of XHTML 1.1 is that it requires you to transmit your content as "application/xhtml+xml" instead of "text/html", and the browser support for this was limited with earlier versions.

    So, why did Microsoft decide to use XHTML 1.0 Transitional as their default DOCTYPE?

    • instead of HTML because all of the advantages mentioned above from the MSDN article
    • instead of XHTML 1.0 Strict and 1.1 because you always want backwards compatibility in your IDE, and if they used Strict for example, if you had opened your XHTML 1.0 Transitional with <font> and <pre> in it you would have gotten a lot of errors, which could be avoided.
    • internally, and this is only a guess, XHTML is slightly faster to parse (because XML parsing is generally a little bit faster than HTML). Although for an user the difference is not notable, for a large program like Visual Studio every little tweak counts.

    I mentioned only Visual Studio, but same applies to Expression.

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

Sidebar

Related Questions

I am wondering why this is not working please help me. Here is my
I was just wondering this the other day. I am not exactly sure how
I'm wondering if this violates Apples terms or not. Basically what I'm considering is
I have this selector: $(table.details tbody tr:not(.details)) But I'm wondering why this inner table
I was wondering if this was possible? I'm not familiar with using windows command
I'm just wondering if this is possible, and if not, the best way to
I'm wondering if there's a solution to this: (possibly not, but you never know!)
I was wondering, whether is AndroidHttpClient thread safe, as this is not being mentioned
This problem is not readily reproducible in a simple example here but was wondering
I know this question is not really important.. however I've been wondering: Which of

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.