XML, HTML, XHTML....Oh God I'm so confused!

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
HemlockGrey
Fucking Awesome
Posts: 13834
Joined: 2002-07-04 03:21pm

XML, HTML, XHTML....Oh God I'm so confused!

Post by HemlockGrey »

Ok, so I would like to open up my very own little website and stuff; I know a bit of HTML, so I thought it would be pretty easy.

But what's the deal with XHTML? XML? Do I have to know it? I've Googled it quite a bit, and all I can piece together is that XHTML appears to be more compatible, whatever the hell that means...
The End of Suburbia
"If more cars are inevitable, must there not be roads for them to run on?"
-Robert Moses

"The Wire" is the best show in the history of television. Watch it today.
TempestMagister
Youngling
Posts: 99
Joined: 2004-05-28 07:33pm
Location: Edge of Central Northern New Jersey, USA

Post by TempestMagister »

XHTML is basically a standardized and more constricted form of HTML in order to help coders all around the web able to understand each other's HTML code. There really isn't anything special to it.

XML, well, its a little complex, but basically as I can remember, it is a language that allows the coder to basically set-up his/her little coding language, and easily be integrate Pearl and ASP. It allows the flexibility and power of customizing websites made from Standardized General Markup Languages, while having the simplicity and ease of HTML. One book said it has 90% the power SGML with 10% of the difficulty. It is simply put, a metalanguage for dealing with all webpage elements, including those of webpages viewed on different systems, such as on mobile phones, or sending web-oriented information to gaming clients.
User avatar
kojikun
BANNED
Posts: 9663
Joined: 2002-07-04 12:23am
Contact:

Post by kojikun »

From w3.org:

What is XHTML?

The Extensible HyperText Markup Language (XHTML?) is a family of current and future document types and modules that reproduce, subset, and extend HTML, reformulated in XML. XHTML Family document types are all XML-based, and ultimately are designed to work in conjunction with XML-based user agents. XHTML is the successor of HTML, and a series of specifications has been developed for XHTML.

http://www.w3.org/MarkUp/

*****

Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere.

http://www.w3.org/XML/

***

Lots more info:

http://en.wikipedia.org/wiki/XHTML
http://en.wikipedia.org/wiki/XML
Sì! Abbiamo un' anima! Ma è fatta di tanti piccoli robot.
HemlockGrey
Fucking Awesome
Posts: 13834
Joined: 2002-07-04 03:21pm

Post by HemlockGrey »

Damn! Why didn't I think of Wikipedia? I'm an idiot.

Alright, thanks...I think I'll stick to HTML...question for anyone w/ a webpage, what do you use? Any fancy scripts or anything?
The End of Suburbia
"If more cars are inevitable, must there not be roads for them to run on?"
-Robert Moses

"The Wire" is the best show in the history of television. Watch it today.
User avatar
Damaramu
Jedi Master
Posts: 1449
Joined: 2002-07-06 04:09am
Location: Texas
Contact:

Post by Damaramu »

For my craptastic page (my java scrpiting doesn't work properly with Firefox), I just use plain old HTML. I've personally never found a reason why I should use the other formats.
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post by Pu-239 »

HemlockGrey wrote:Damn! Why didn't I think of Wikipedia? I'm an idiot.

Alright, thanks...I think I'll stick to HTML...question for anyone w/ a webpage, what do you use? Any fancy scripts or anything?
I use XHTML, just in case I decide to use XSLT to transform the HTML for me.
I try to avoid client side scripts, though I do have a PHP script that lets users switch the CSS.

I might switch the site to XML (custom DTD) using XSLT to convert it to XHTML, making maintenance easier, and allowing for more drastic changes than CSS alone allows.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
Crayz9000
Sith Apprentice
Posts: 7329
Joined: 2002-07-03 06:39pm
Location: Improbably superpositioned
Contact:

Post by Crayz9000 »

HemlockGrey wrote:Damn! Why didn't I think of Wikipedia? I'm an idiot.

Alright, thanks...I think I'll stick to HTML...question for anyone w/ a webpage, what do you use? Any fancy scripts or anything?
Start with something simple (keep the layout, etc as simple as possible) and gradually build up. CSS is a very good thing to learn to use, as it cuts down on the amount of work you need to do to change colors, and it also makes coding easier.
A Tribute to Stupidity: The Robert Scott Anderson Archive (currently offline)
John Hansen - Slightly Insane Bounty Hunter - ASVS Vets' Assoc. Class of 2000
HAB Cryptanalyst | WG - Intergalactic Alliance and Spoof Author | BotM | Cybertron | SCEF
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

Post by Slartibartfast »

This is what I understand of it:

HTML: the language that people use to make webpages. It has like, tags and stuff, and they're hardcoded according to some standard (except Internut Exploder which sucks balls).

XML takes the idea of the tags, and makes some standarizations, like: tags ALWAYS go in pairs, or else you have to end them in "/>", and how you're supposed to write attributes, and that you must have a single external tag containing everything. Tags are arbitrary, meaning that you don't have <img> or <embed> tags, you make your own tags for your own type of document. You can have a <book> tag that contains <chapter> tags for a library reference doc, for instance.

XHTML is XML applied to HTML: same tags as HTML but you must obey the rules, that's why you see several pages now with <img src="xxx /> (with the / at the end) because they're adapting the XHTML standard. But it's basically the exact same thing as regular HTML.
Image
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post by Pu-239 »

Slartibartfast wrote:This is what I understand of it:

HTML: the language that people use to make webpages. It has like, tags and stuff, and they're hardcoded according to some standard (except Internut Exploder which sucks balls).

XML takes the idea of the tags, and makes some standarizations, like: tags ALWAYS go in pairs, or else you have to end them in "/>", and how you're supposed to write attributes, and that you must have a single external tag containing everything. Tags are arbitrary, meaning that you don't have <img> or <embed> tags, you make your own tags for your own type of document. You can have a <book> tag that contains <chapter> tags for a library reference doc, for instance.

XHTML is XML applied to HTML: same tags as HTML but you must obey the rules, that's why you see several pages now with <img src="xxx /> (with the / at the end) because they're adapting the XHTML standard. But it's basically the exact same thing as regular HTML.
An advantage of XHTML is that if you hand code sites and make sure it's sending the xml+xhtml MIME (won't work in IE, you need to have a server side script or something to do this), and use a browser other than IE, pages will not work at all if there are any syntax errors, which helps to validate pages. That's a lot of ifs though.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
Durandal
Bile-Driven Hate Machine
Posts: 17927
Joined: 2002-07-03 06:26pm
Location: Silicon Valley, CA
Contact:

Post by Durandal »

XML is geared for, well, anything you can think of involving the categorization of data. For example, preference files on OS X are XML-compliant files, using key/value pairs. From what I understand, some Linux distros employ this method of storing preferences, as well.
Damien Sorresso

"Ever see what them computa bitchez do to numbas? It ain't natural. Numbas ain't supposed to be code, they supposed to quantify shit."
- The Onion
Post Reply