|
|
|
|
Thread title: To use xHTML or HTML? |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
06-17-2006, 08:34 PM
|
#11
|
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
Posts: 4,449
|
HTML Strict here, what's the point in saying it's XHTML when there is no XML within.
|
|
06-17-2006, 08:40 PM
|
#12
|
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
Posts: 2,246
|
Originally Posted by Techno
Well the fact the only way to use it properly is to save it as .xhtml and that IE6 dosen't support XHTML?
|
and where did you hear this? xhtml is xml parsed as html hence the combining of the terms.
|
|
06-17-2006, 08:49 PM
|
#13
|
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
Posts: 4,449
|
But he's right to the point that it's not XHTML unless you actually use XML.
|
|
06-18-2006, 03:45 PM
|
#14
|
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
Posts: 3,709
|
Originally Posted by dereklapp
and where did you hear this? xhtml is xml parsed as html hence the combining of the terms.
|
http://www.sitepoint.com/forums/showthread.php?t=393445
Can I use XHTML with Internet Explorer?
No. Not really.
IE does not support the application/xhtml+xml MIME type, and will prompt the user to download the page if it's served as such. You can make IE recognise this MIME type through a registry hack, but it will still treat it as HTML.
If you need the XML features of XHTML, you can serve the document as application/xml. That is supported by IE, but XHTML's namespace is not, which means IE will see the document as generic XML. There will be no default style sheet, so you have to specify explicit rules for every element type (including display:block for all block-level elements).
You can, of course, serve XHTML markup as text/html, but as has been mentioned above that means the document will be seen as HTML with syntax errors.
Will IE7 support XHTML?
No.
|
|
|
06-18-2006, 04:02 PM
|
#15
|
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
Posts: 2,246
|
you'll have to point out where it has to be named .xhtml.
|
|
06-18-2006, 04:06 PM
|
#16
|
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
Posts: 3,709
|
If it is .htm or .html it is put across as text/html.
|
|
06-18-2006, 11:39 PM
|
#17
|
Status: I'm new around here
Join date: Jun 2006
Location: Toronto, Ontario
Expertise:
Software:
Posts: 15
|
I use HTML 4.01 Strict. I'm not using any XHTML modules (for day to day sites, that is!) nor am I even going to serve real XHTML (application/xhtml+xml) because IE can't handle it.
There is no benefit to using XHTML * at the moment other that it looks "cooler" than plain ol' HTML.
|
|
06-19-2006, 06:25 AM
|
#18
|
Status: Junior Member
Join date: May 2006
Location: Pennsylvania, USA
Expertise:
Software:
Posts: 59
|
xHTML Strict is what I use mostly because it is what people want. Truely there is no advantage though.
HTML is parsed by SGML, which is a very loose way of doing things and will let you get away with pretty much anything. XHTML, like the article says is more strict. But XHTML should not be parsed by SGML, it should be parsed by XML. No problem there, untill you send it to IE and BAM! IE wants to download the page and do all stupid things with it (there goes ~90% of browser support).
Plus there is no advantage with XHTML over HTML.
|
|
|
06-20-2006, 03:50 PM
|
#19
|
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
Posts: 2,246
|
Originally Posted by Techno
If it is .htm or .html it is put across as text/html.
|
server side languages for the win sir. +)
|
|
06-20-2006, 04:44 PM
|
#20
|
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
Posts: 3,709
|
The win? Wow your not childish?
If it is .htm or .html it is put across as text/html.
Now either my eyes are playing up or I mentioned no where about server side scripts. Ofcourse you can with PHP etc... But we are talking about xHTML/HTML coding which dosen't need PHP.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|