hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : html vs. XML
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

html vs. XML

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-30-2004, 05:55 AM
ep2002 ep2002 is offline
WHT Addict
 
Join Date: Apr 2004
Location: Panama City, Panama
Posts: 167

html vs. XML


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

Reply With Quote


Sponsored Links
  #2  
Old 09-30-2004, 09:09 AM
christowang christowang is offline
WHT Addict
 
Join Date: Feb 2004
Location: New Jersey
Posts: 101
May want to check this out:

http://www.w3c.org/MarkUp/Activity

That being said, most browsers will support Transitional XHTML without problems. Is it worth it convert old stuff over? That would be your preference, but your probably won't see any advantage at the moment.

Reply With Quote
  #3  
Old 09-30-2004, 09:40 AM
inimino inimino is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Location: Colorado, US
Posts: 425
You want XHTML, which is an application of XML. XML itself is a much more broad specification.

Reply With Quote
Sponsored Links
  #4  
Old 09-30-2004, 09:41 AM
Burhan Burhan is offline
Community Guide
 
Join Date: Jul 2003
Location: Kuwait
Posts: 5,100
XML != HTML, so you can't compare them. Its apples and oranges.

XML is for the definition of data so that it can be transferred reliable over networks (between two different systems).

HTML is the language that allows you to mark up text so that it will display in user agents (ie, browsers) with some formatting. It allows for linking two documents (or resources) together by the use of hyperlinks.

The two are different, and shouldn't be fused together.

XHTML is a version of HTML that follows stricter rules that allow it to become "xml-like".

__________________
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise

Reply With Quote
  #5  
Old 09-30-2004, 10:54 AM
gogocode gogocode is offline
Web Hosting Evangelist
 
Join Date: Mar 2004
Location: New Zealand
Posts: 527
Quote:
Originally posted by fyrestrtr
XML != HTML, so you can't compare them. Its apples and oranges.

XHTML is a version of HTML that follows stricter rules that allow it to become "xml-like".
HTML (at least with tightening) can be written as a well-formed XML dialect. XHTML is XML, following an appropriate DTD.

HTML traditionally is a 'loose' specification, XML is strict.

SGML begat HTML, HTML begat XML.

When it comes down to it, it's all just a syntax for data markup.

__________________
James Sleeman
PHP Programmer | Specialist PHP 5 Web Hosting

Reply With Quote
  #6  
Old 09-30-2004, 11:01 AM
inimino inimino is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Location: Colorado, US
Posts: 425
Quote:
Originally posted by gogocode
SGML begat HTML, HTML begat XML.
HTML is an application of SGML, the same relationship does not hold for HTML and XML.

It would be more accurate to say that XML was a development and simplification of the original goals of SGML.

XML was not developed as a replacement for HTML.

Reply With Quote
  #7  
Old 09-30-2004, 05:16 PM
Rich2k Rich2k is offline
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
Quote:
Originally posted by fyrestrtr

XHTML is a version of HTML that follows stricter rules that allow it to become "xml-like".
Not quite true I'm afraid. Truely compliant XHTML actually has an XML declaration at the top. XHTML is an application of XML.

__________________
Dominion Web - http://www.dominion-web.com/

Reply With Quote
  #8  
Old 10-01-2004, 09:05 AM
Burhan Burhan is offline
Community Guide
 
Join Date: Jul 2003
Location: Kuwait
Posts: 5,100
Yes, but hardly anyone adds the xml declaration because of the famous quirks-mode issue.

If you add the xml declaration to a valid xhtml file, then you have a xml file.

__________________
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise

Reply With Quote
  #9  
Old 10-01-2004, 10:42 AM
Salathe Salathe is offline
Newbie
 
Join Date: Apr 2003
Location: Edinburgh, UK
Posts: 21
Hi Michelle,

To answer your query. I would advise going with well-formed XHTML Transitonal (with CSS) for now simply because of the transitional nature!

As far as JavaScript (JS) goes, you do need to know what you're doing when using JS. Ideally any features which you implement using JS shouldn't affect the function of the page when JS is disabled. In other words, don't rely on visitors having JS enabled in their browser.

I would also ignore all of the posts above which really didn't help you find your way whatsoever -- such is the nature of online conversation I'm afraid.

Cheers,
Peter

Useful Articles:
XHTML - http://www.webreference.com/authoring/xhtml/

__________________
Sneak in to any website! <--- it's for sale!

Reply With Quote
  #10  
Old 10-12-2004, 11:44 AM
ep2002 ep2002 is offline
WHT Addict
 
Join Date: Apr 2004
Location: Panama City, Panama
Posts: 167
Hey,

LOL, how did you know I was lost at that point.

Sorry for the delay, I had huge issues here I had to take care of & I'm just now getting back to all the posts.

Okay so as far as JS goes, I have to have a backup something or other just in case people don't have JS enabled or I should nix it altogether?

Right now I have to go thru & find tons of sites. The WD wants me to show him sites I like (yeh right) so he can get an idea of what to design.

Any suggestions?

Thanks & I hope you are having a good day


Michelle



Quote:
Originally posted by Salathe
Hi Michelle,

To answer your query. I would advise going with well-formed XHTML Transitonal (with CSS) for now simply because of the transitional nature!

As far as JavaScript (JS) goes, you do need to know what you're doing when using JS. Ideally any features which you implement using JS shouldn't affect the function of the page when JS is disabled. In other words, don't rely on visitors having JS enabled in their browser.

I would also ignore all of the posts above which really didn't help you find your way whatsoever -- such is the nature of online conversation I'm afraid.

Cheers,
Peter

Useful Articles:
XHTML - http://www.webreference.com/authoring/xhtml/

Reply With Quote
  #11  
Old 10-12-2004, 12:25 PM
inimino inimino is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Location: Colorado, US
Posts: 425
JavaScript is fine, but you should build a version of the site that works without it, and use it to add functionality.

If JavaScript is required to use the site, then you have a problem. If you have a good Web designer you should have to worry about this.

Reply With Quote
  #12  
Old 10-12-2004, 01:02 PM
inimino inimino is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Location: Colorado, US
Posts: 425
What I meant to say is:

If you have a good Web designer you should NOT have to worry about this.

Reply With Quote
  #13  
Old 10-12-2004, 01:42 PM
ep2002 ep2002 is offline
WHT Addict
 
Join Date: Apr 2004
Location: Panama City, Panama
Posts: 167
I understood what you meant

Well right now I'm just hiring someone to do the design element, not the coding, other than CSS & html of course. When I do hire someone to do the coding part, I'll keep that in mind, but now that I think I'm getting rid of the newscroller, I think that will solve the JS problem.

Thanks


Michelle

Quote:
Originally posted by inimino
What I meant to say is:

If you have a good Web designer you should NOT have to worry about this.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Emerging Tech - HTML5 Blog 2013-05-14 14:46:22
Google Drive Adds File Hosting, Improves Third-Party App Integration Web Hosting News 2013-02-08 12:46:31
Blogging Site LiveJournal Hit by Ongoing DDoS Attack Web Hosting News 2011-12-08 16:35:38
Amazon Web Services Executive Killed in Plane Crash: Reports Web Hosting News 2011-12-05 16:56:13
UK Web Host WebHost.uk.net Launches Affiliate Program Web Hosting News 2011-07-27 17:51:02


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?