Brunods 0 Posted October 4, 2005 Report Share Posted October 4, 2005 Hello fellas,Im an old adept of HTML and Im trying to upgrade myself to XHTML.-Wich file extension should I use for XHML?In theory, it shoudn't be THAT different, BUT, with IE6, if I use different file extensions the result comes out different too!If I use *.xml extensions(should I use XML extensions for XHTML files?), IE displays the Document Element Tree instead of what I wanted, that would only appear if I would use the *.html or *.xhtml extensions.I am very Confused, can anyone help me out?Thanks a lot. Quote Link to post Share on other sites
kelnage 0 Posted October 4, 2005 Report Share Posted October 4, 2005 First lesson of the day:XML != XHTMLXML is not XHTML. If you want XHTML, you should stick with the .html extension. XHTML is not that different to HTML and browsers will know how to interpret your page by the doctype you've included at the top of your page (well, that you should include at the top of your page).XML is a very different matter. Internet Explorer is right in trying to show you Document Element Tree, as that's how XML files should be shown.So, use the .html extension as that's the correct one (.xhtml will work too, however, not all servers will be certain how to display it, so it's safer to use .html). Quote Link to post Share on other sites
Brunods 0 Posted October 5, 2005 Author Report Share Posted October 5, 2005 Thank you! nice weight off! Must confess I didnt see anything special in XHTML besides the "road to standard internet". :)Ok, XHMT is NOT XML, but can I add other namespaces besides the XHTML one and use some XML features, e.g. the XLinks? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.