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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:11:05+00:00 2026-06-04T14:11:05+00:00

I am learning HTML 5 and have a question: Can HTML 5 be used

  • 0

I am learning HTML 5 and have a question:
Can HTML 5 be used in XHTML 1.1 documents?
If yes, then could anybody give an example?

  • 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-04T14:11:06+00:00Added an answer on June 4, 2026 at 2:11 pm

    Do not confuse XHTML and HTML.

    XHTML is HTML ruled to be a valid XML document. Actually the XHTML 1.1 standard does not apply to HTML 5 but to HTML 4.01.

    What does it mean? You can pick a valid XHTML 1.1 document and it’ll be a valid HTML 5 document but the counter-part is not always true. For example:

    <button disabled></button>
    

    It’s valid HTML code (it doesn’t matter which version) but it’s not a valid XML statement (then it’s not a valid XHTML document) because of the empty attribute. World is full of these examples (just Google), HTML is very relaxed about syntax (and HTML 5 didn’t change this direction) and there are some other differences too (here, for an example). Moreover the HTML 5 standard introduced new tags that aren’t part of XHTML 1.1 standard so a fully featured HTML 5 document (despite the syntax) won’t be a valid XHTML 1.1 document.

    References
    Here a short list of good reference about this topic, selected from SO answers:

    • HTML/XHTML and MIME type: a short answer about content type and markup syntax.
    • All-in-one about HTML and XHTML: a long list of QA that covers different aspects of HTML/XHTML compatibility.
    • What to use: a question about what is better to use between HTML and XHTML (of course the answer is it depends but the answer itself is good).
    • XHTML/HTML for mobiles: some nice tips about HTML5/XHTML with Apple’s devices.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning some aspx and had a question. I have the following example
I'm learning Jsoup and have this HTML: [...] <p style=...> <!-- div 1 -->
I am learning knokcout.js I was using the example in http://www.knockmeout.net/2011/04/utility-functions-in-knockoutjs.html , which is
I have a question. I'll post the HTML first, I know you shouldn't use
I only began learning about web development 3 weeks ago and have grasped html,
I'm one day into learning JQuery and have a question about the octothorpe syntax.
I am learning about Progressive Enhancement and I have a question about AJAXifying views.
Sorry still learning Yii so newbie question. I have a site im converting over
Back when I was learning HTML, I loved how easy it to build pages
I'm a fairly inexperienced web designer learning css/html on the fly for a company's

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.