Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1171 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

To use xHTML or HTML?

Thread title: To use xHTML or HTML?
Closed Thread  
Page 2 of 4 < 1 2 3 4 >
    Thread tools Search this thread Display Modes  
06-17-2006, 08:34 PM
#11
Jeff Andersen is offline Jeff Andersen
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 4,449
iTrader: 10 / 100%
 

Jeff Andersen is on a distinguished road

  Old

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
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

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
Jeff Andersen is offline Jeff Andersen
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 4,449
iTrader: 10 / 100%
 

Jeff Andersen is on a distinguished road

  Old

But he's right to the point that it's not XHTML unless you actually use XML.

06-18-2006, 03:45 PM
#14
Techno is offline Techno
Techno's Avatar
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
 
Posts: 3,709
iTrader: 1 / 100%
 

Techno is on a distinguished road

  Old

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
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

you'll have to point out where it has to be named .xhtml.

06-18-2006, 04:06 PM
#16
Techno is offline Techno
Techno's Avatar
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
 
Posts: 3,709
iTrader: 1 / 100%
 

Techno is on a distinguished road

  Old

If it is .htm or .html it is put across as text/html.

06-18-2006, 11:39 PM
#17
NickPresta is offline NickPresta
Status: I'm new around here
Join date: Jun 2006
Location: Toronto, Ontario
Expertise:
Software:
 
Posts: 15
iTrader: 0 / 0%
 

NickPresta is on a distinguished road

Send a message via AIM to NickPresta

  Old

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
Cmain is offline Cmain
Cmain's Avatar
Status: Junior Member
Join date: May 2006
Location: Pennsylvania, USA
Expertise:
Software:
 
Posts: 59
iTrader: 4 / 100%
 

Cmain is on a distinguished road

Send a message via AIM to Cmain Send a message via MSN to Cmain

  Old

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
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

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
Techno is offline Techno
Techno's Avatar
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
 
Posts: 3,709
iTrader: 1 / 100%
 

Techno is on a distinguished road

  Old

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.

Closed Thread  
Page 2 of 4 < 1 2 3 4 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed