English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What is the different between the Xml and Html

2006-12-29 03:56:07 · 12 answers · asked by Ramana 1 in Computers & Internet Programming & Design

12 answers

XML and HTML are both document markup languages. HTML focuses on markup suitable for the web, while XML is a neutral markup language.

Inaccuracies in other answers:

"HTML was designed to display data and to focus on how data looks."
No. HTML isn't really focused on presentation. It's used to indicate the structural meanings of parts of a document. Example, a heading, a hyperlink, a paragraph. How it actually looks in a web browser, or whatever medium is used, is up to the agent. You should control presentational attributes through CSS.

"XML was created so that richly structured documents could be used over the web. The only viable alternatives, HTML and SGML, are not practical for this purpose."

That's a bit misleading. XML and HTML are really subsets of SGML. SGML is so vague and broad in scope, that it isn't really usable for something like webpages. In fact, HTML is used for richly structured documents over the web, and not XML. XML is a neutral markup language. XHTML is an XML conforming HTML file intended for web use. HTML does not necessarily conform to XML standards.

"XML is used for representation of data.
html is used for presentation of data."
No! They are both structural markup languages. HTML is *not* used for presentation. It's used to give semantic and structural meanings to various parts of the document.

2006-12-29 04:28:53 · answer #1 · answered by csanon 6 · 2 0

XML is a markup language for documents containing structured information. Structured information contains both content (words, pictures, etc.) and some indication of what role that content plays.

In HTML, both the tag semantics and the tag set are fixed. XML specifies neither semantics nor a tag set.

XML was created so that richly structured documents could be used over the web. The only viable alternatives, HTML and SGML, are not practical for this purpose.

Basically, HTML comes bound with a set of semantics and does not provide arbitrary structure.

To get a better understading search on Yahoo! or Google

2006-12-29 04:03:53 · answer #2 · answered by nealee 2 · 1 0

Hi
HTML is an abbreviation for HyperText Markup Language while XML stands for eXtensible Markup Language.The differences are as follows:-

1.HTML was designed to display data with focus on how data looks while XML was designed to be a software and hardware independent tool used to transport and store data, with focus on what data is.

2.HTML is a markup language itself while XML provides a framework for defining markup languages.

3.HTML is a presentation language while XML is neither a programming language nor a presentation language.

4.HTML is case insensitive while XML is case sensitive.

5.HTML is used for designing a web-page to be rendered on the client side while XML is used basically to transport data between the application and the database.

6.HTML has it own predefined tags while what makes XML flexible is that custom tags can be defined and the tags are invented by the author of the XML document.

7.HTML is not strict if the user does not use the closing tags but XML makes it mandatory for the user the close each tag that has been used.

8.HTML does not preserve white space while XML does.

9.HTML is about displaying data,hence static but XML is about carrying information,hence dynamic.

Thus,it can be said that HTML and XML are not competitors but rather complement to each other
and clearly serving altogether different purposes.

For more go through http://blog.designjuice.in/category/web-design-and-development/html5-and-css3/

2014-08-25 01:07:58 · answer #3 · answered by Anonymous · 0 0

The main difference between XML and HTML

XML is not a replacement for HTML.
XML and HTML were designed with different goals:

XML was designed to describe data and to focus on what data is.
HTML was designed to display data and to focus on how data looks.

HTML is about displaying information, XML is about describing information.

2006-12-29 03:57:28 · answer #4 · answered by arundirect 4 · 2 0

In HTML, both the tag semantics and the tag set are fixed. XML specifies neither semantics nor a tag set.

XML was created so that richly structured documents could be used over the web. The only viable alternatives, HTML and SGML, are not practical for this purpose.

2014-06-17 20:17:25 · answer #5 · answered by Anonymous · 0 0

The Extensible Markup Language (XML) is a W3C-recommended general-purpose markup language that supports a wide variety of applications. XML languages or 'dialects' are easy to design and to process. XML is also designed to be reasonably human-legible, and to this end, terseness was not considered essential in its structure. XML is a simplified subset of Standard Generalized Markup Language (SGML). Its primary purpose is to facilitate the sharing of data across different information systems, particularly systems connected via the Internet. Formally defined languages based on XML (such as RSS, MathML, XHTML, Scalable Vector Graphics, MusicXML and thousands of other examples) allow diverse software reliably to understand information formatted and passed in these languages.


HyperText Markup Language (HTML) is the predominant markup language for the creation of web pages. It provides a means to describe the structure of text-based information in a document — by denoting certain text as headings, paragraphs, lists, and so on — and to supplement that text with interactive forms, embedded images, and other objects. HTML can also describe, to some degree, the appearance and semantics of a document, and can provide additional cues, such as embedded scripting language code, that can affect the behavior of web browsers and other HTML processors.

2006-12-29 03:59:11 · answer #6 · answered by Anonymous · 1 0

I guess that you are trying to learn xml now. There are various ways to see the difference between html and xml. Best way is to see the differences during initial phase as
usage:
Html: to display contents on browser
xml: Structured way to store and transfer/exchange data.
Syntax:
html: they have a set of pre defined tag names that can be used, Ex html, image,table,. Ideally all opening tags should have a closed tag but this is not mandatory.
xml: you can use any tag name Ex root, xyz. All opening tags must be closed compulsorily.

In simple terms all well formed html( every opened tag having a closed tag) is a xml.

Example
Html


This is a html
This is not a xml



ps: notice that "br" tag does not have a closing tag
___________________
_
XML:


This is a xml



_________________
XML and HTML


This is a html and XML



After some days once you have worked with xml and html you will find these differences trivial and will think in different ways. and have other questions. For now, good luck with your xml and html.

2006-12-29 08:59:28 · answer #7 · answered by k4java 1 · 0 0

Xml is for data, Html is for pages. You'll see enterprises nowadays using xml for data interchange, and you'll see them using html for their pages, styling them with Css inline styles or .css files. you can however show xml data with xsl, which is just a way to process the data and display it.

2006-12-29 04:47:28 · answer #8 · answered by Julio M 3 · 0 0

html is "hyper text mark-up language" and it's the language of the internet, it's all the codes that make up each website and web page. like and it translates to colors and the whole formatting of the website or page. XML is really a meta-language for describing markup languages. In other words, XML provides a facility to define tags and the structural relationships between them.

2006-12-29 04:00:24 · answer #9 · answered by Ashley 3 · 0 1

XML is used for representation of data.
html is used for presentation of data.

2006-12-29 04:15:30 · answer #10 · answered by rockraikar 1 · 1 0

fedest.com, questions and answers