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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:25:30+00:00 2026-05-29T05:25:30+00:00

What makes XHTML (and other XML languages) applications while other SGML-based languages are text?

  • 0

What makes XHTML (and other XML languages) applications while other SGML-based languages are text? Aren’t XML files text files?

  • 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-29T05:25:32+00:00Added an answer on May 29, 2026 at 5:25 am

    XHTML is a subset of XML; XML’s media type/mime is text/xml while XHTML’s media type/mime is application/xhtml+xml.

    Generally HTML is essentially treated like plain text that is interpreted very loosely. Because HTML’s junk status reputation XHTML was created to force web designers and web developers to code clean HTML. Gecko (Firefox) and Presto (Opera) browsers correctly break the page and display a malformed XML parse error whereas WebKit (Chrome/Safari) and Trident (Internet Explorer 9.0+ only) fail at failing and merely stop rendering the page.

    An XHTML application served as text/html is NOT XHTML, it’s HTML with an XHTML doctype.

    For XHTML code to be served as an XHTML application it must be served as application/xhtml+xml.

    XHTML is also intended to be backwards compatible with HTML.

    The following PHP code will look at the headers sent by the client’s browser and serve the page as an XHTML application if the browser supports it (all Chrome, Safari 3.0+ (maybe 1.0)), Mozilla Suite 0.8+/all Firefox and Opera 7.0+ (possibly 6.0) support XHTML. Only Internet Explorer 8.0 and older have any market share that does not support XHTML. KHTML browsers (Konqueror) DO support XHTML however I think 4.4 does/did not serve the correct header to the server.

    <?php
    $http_accept_xhtml = stristr($_SERVER['HTTP_ACCEPT'],'application/xhtml+xml');
    
    if ($http_accept_xhtml) {$mime = 'application/xhtml+xml';}
    else {$mime = 'text/html';}
    
    header('Content-Type: '.$mime);
    echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
    ?>
    

    XHTML is way better than HTML if you’re intelligent enough to fix errors when you come across them. It’s stricter but that’s the point, much less subjectivity. The X in XHTML stands for extensible so it supported SVG and other languages before HTML did if you do a bit of reading.

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

Sidebar

Related Questions

Is there any browser based XHTML editor which we can use to make text
Is it possible to use XSLT to transform XML into something other than XML?
Consider the following HTML markup: <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0
I have a php file generating XHTML content and I use <?php header('Content-type: application/xhtml+xml');?>
Which is the strictest mode of XHTML to make my coding habits semantically and
Is there anyway to make an image map W3C XHTML 1.0 Strict compliant? I'm
Any way to make a OS X Finder like but valid XHTML/CSS search textfield
I'll make this short, I got this webpage : <html xmlns=http://www.w3.org/1999/xhtml> <head> <link rel=Stylesheet
First off, I apologize if this doesn't make sense. I'm new to XHTML, CSS
VC++ makes functions which are implemented within the class declaration inline functions. If 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.