Link to home
Start Free TrialLog in
Avatar of snyperj
snyperjFlag for United States of America

asked on

Need to know some basic differences between HTML, XHTML & XML

I have a meeting this morning and I was hoping to get some foundational type information from EE regarding web development programming.  I have a feeling there is going to be an attempt to "BS" me in this meeting and that is why I am interested in learning a little something beforehand.

I need to know some general information on the following topics: HTML, XHTML and XML.  I believe these would be called programming languages?  By general info I mean:
1.) What are the main differences between the three?
2.) Is there a preferred language out of the three?
3.) Are any of them better at a specific type of site then the other?
4.) If you need to learn all three- in which order should you learn them?

THANKS MUCH!
Avatar of favoretti
favoretti
Flag of Netherlands image

Hello snyperj,

No, these all aren't programming languages, they are markup languages.

1.) What are the main differences between the three?
HTML - hypertext markup language, the mother of the web ;)
XHTML - extensible hypertext markup language, HTML which conforms XML syntax.
XML - extensible markup language, the mother of anything you would ever imagine these days.

2.) Is there a preferred language out of the three?
Any of the three can be preferred for a particular task, there's no "general preference" of one over the other, since they are all sort of used to fullfill very different things.

3.) Are any of them better at a specific type of site then the other?
Yes, based on the task you need to do, you would favor one above the other.

4.) If you need to learn all three- in which order should you learn them?
HTML, XML, XHTML. The reason would be - XHTML is a mix of HTML and XML, without knowing those 2 first, XHTML might seem a bit awkward.

Regards,

favoretti
Avatar of snyperj

ASKER

Thanks- what is meant by "markup" language vs "programming" language
A markup language is a set of annotations to text that describe how it is to be structured, laid out, or formatted. Markup languages have been in use for centuries, and in recent years have also been used in computer typesetting and word-processing systems.

A well-known example of a markup language in use today in computing is HyperText Markup Language (HTML), one of the protocols of the World Wide Web. HTML follows some of the markup conventions used in the publishing industry in the communication of printed work between authors, editors, and printers.

More info here: http://en.wikipedia.org/wiki/Markup_language

:)
Avatar of snyperj

ASKER

3.) Are any of them better at a specific type of site then the other?
>>Yes, based on the task you need to do, you would favor one above the other.

Even HTML? Or would the choices today really only be between XHML or XML?

It seems from what I have read just quickly surfing this morning that HTML has been replaced, for the most part, by the other two...

Is that a fair statement?
ASKER CERTIFIED SOLUTION
Avatar of favoretti
favoretti
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial