User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,579 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,436 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 9185 | Replies: 7
Reply
Join Date: May 2004
Location: Toronto, Ontario (Canada)
Posts: 384
Reputation: ep2002 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
ep2002's Avatar
ep2002 ep2002 is offline Offline
Posting Whiz

html vs. XML

  #1  
Sep 30th, 2004
Hi all,

I'm trying to understand the differences between the 2 & whether it's worth the headache finding someone who can do xml, or should I just leave my site to be coded in html & CSS?

Even JavaScript seems to be an issue b/c not all people have JS enabled.

Please give me your povs.

Thanks & have a great day


Michelle
I can help you get a merchant account whether mainstream or high risk...

http://www.exoticpublishing.com/merchant-accounts.php


AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,900
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 118
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: html vs. XML

  #2  
Sep 30th, 2004
Websites aren't really coded in XML. XML is a language that is used to transmit database information between different mediums. For example, if you want to display the latest DaniWeb threads on your site, constantly updated, you would use an XML page of our latest info (i.e. www.daniweb.com/techtalkforums/external.php) You would then use HTML/XHTML to design a frontend for displaying this information.

XHTML is HTML ala XML. If developing a new site, I would use XHTML, like this site is. There is more support for the latest browsers and it is extremely CSS friendly. There are two versions - XHTML strict and XHTML transitional. XHTML transitional is a more leinient version that supports many HTML tags. XHTML strict is composed entirely of div tags and CSS. The idea is that the layout and design of a site should be kept entirely separate from a site's content. Therefore, all that should appear on the page are div tags, span tags, and text. CSS defines the entire layout of everything.
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: html vs. XML

  #3  
Sep 30th, 2004
My personal standpoint is that new sites I build will be xhtml, the old sites will be whatever standard was popular at that time. I won't be going round every site to update them.

Personally I rarely if ever use javascript. However the official standpoint on that is that if the function of the script is critical to the operation of the page, then it should be done server side.
Reply With Quote  
Join Date: Aug 2004
Posts: 49
Reputation: felgall is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
felgall felgall is offline Offline
Light Poster

Re: html vs. XML

  #4  
Sep 30th, 2004
Pages created using XHTML are treated as HTML if they have an .htm or .html extension and as XML if they have a .xml extension so, provided your code is valid, using XHTML gives you both at once.
Reply With Quote  
Join Date: May 2004
Location: Toronto, Ontario (Canada)
Posts: 384
Reputation: ep2002 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
ep2002's Avatar
ep2002 ep2002 is offline Offline
Posting Whiz

Re: html vs. XML

  #5  
Oct 12th, 2004
Sorry for the delay, I've been swamped.

So is it safe to assume that someone who doesn't know xhtml isn't up to speed when it comes to WD, or not necessarily?

Thanks


Michelle

Originally Posted by DaveSW
My personal standpoint is that new sites I build will be xhtml, the old sites will be whatever standard was popular at that time. I won't be going round every site to update them.

Personally I rarely if ever use javascript. However the official standpoint on that is that if the function of the script is critical to the operation of the page, then it should be done server side.
I can help you get a merchant account whether mainstream or high risk...

http://www.exoticpublishing.com/merchant-accounts.php


Reply With Quote  
Join Date: Aug 2004
Posts: 49
Reputation: felgall is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
felgall felgall is offline Offline
Light Poster

Re: html vs. XML

  #6  
Oct 12th, 2004
The W3C web site lists XHTML 1.1 as the latest HTML standard. I guess it depends on how up to date you want to be. I am not convinced that earlier browsers still used by a lot of people will necessarily display pages written in XHTML 1.1 properly so I am currently using XHTML 1.0 which is almost identical to the previous version (HTML 4.0) except for the minimal changes necessary to make it XML compliant.
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: html vs. XML

  #7  
Oct 12th, 2004
Probably, yes. A developer who's 'on the ball' should at least be able to write xhtml, even if they prefer to stick to HTML 4.01 strict.
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: html vs. XML

  #8  
Oct 12th, 2004
I was under the impression xhtml 1.1 was simply xhtml 1.0 strict with a few minor tweaks.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 7:26 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC