Difference between HTML and XML?

                 HTML was created by Tim Berners-Lee as a simple and effective way of generating clear and readable documents. HTML enables you to create documents and Web pages that can be read by all web browsers.

                  The World Wide Web Consortium(W3C) developed XML to enable the expansion of Web Technologies into the new domains of document processing and data interchange. It is designed to ease data exchange over the Internet. XML is a text-based markup language that enables you to store data in a structured format by using meaningful tags.

Conside a sample HTML Code:

<b> My Book </b>

<p> John Smith <br />
Tech books publications <br />
$50.00 <br />
</p>

The preceding code snippet represents information about the author, publisher, and cost of a book. However, the tags used for presenting the content do not reveal this information. The tags specify the format in which the content must be displayed on ab browser.

<book>
<name> My Book </name>
<author> John Smith </author>
<publisher> Tech books publications </publisher>
<price> $50.00 </price> 
</book>

The preceding code snippet, the content is described by using meaningul tags to represent the data. XML enables you to create a markup language for your application and does not place any restriction on the number of tags that you can define.

0 comments:

Post a Comment

 

About Me

It's Me!Hi, I'm Moinuddin. I'm a Software Engineer at WIPRO working on Microsoft .NET Technology. I'm interested in a wide range of technology topics, mainly Microsoft including Windows Azure, WCF, WPF, Silverlight and any other cool technology that catches the eye.

Site Info

ProjectCSharp.com is mainly about demonstrating real time examples in different technologies like ASP.NET, WCF, WPF, Silverlight, Azure etc..,

Followers

Help Links

Project CSharp (C#) Copyright © 2011. All Rights Reserved.