GeekInterview.com
Series: Subject: Topic:
Question: 12 of 46

Difference between XML and HTML

Write five difference between XML and HTML
Asked by: navin1972 | Member Since Mar-2008 | Asked on: Mar 16th, 2008

View all questions by navin1972   View all answers by navin1972

Showing Answers 1 - 14 of 14 Answers
shammy240

Answered On : Apr 17th, 2008

View all answers by shammy240

HTML is static and XML is dynamic.

  
Login to rate this answer.

1.HTML is presentaton language where as XML is not either a programing  language or a presentation language. It is used to transfer data between applications and databases.
2.HTML is not case-sensitive where as XML is case-sensitive.
3.In XML we can define our own tags as it is not possible in HTML.
4.In XML it is mandatory to close each and every tag where as in HTML it is not required.
5.XML describes the data where as HTML only defines the data.

Yes  2 Users have rated as useful.
  
Login to rate this answer.
vijayvneelar

Answered On : May 12th, 2008

View all answers by vijayvneelar

XML
 
XML stands for Extensible Markup Language
• XML is a markup language much like HTML
• XML was designed to carry data,
• XML tags are not predefined.
• XML is designed to be self-descriptive.
• XML is a W3C Recommendation

HTML

HTML - short for Hypertext Markup Language
 It provides a means to describe the structure of text-based information in a document by denoting certain text as headings, paragraphs, lists, and to supplement that text with interactive forms, embedded images, and other objects.

• Publish online documents with headings, text, tables, lists, photos,
• Retrieve online information via hypertext links, at the click of a button.
• Design forms for conducting transactions with remote services, for use in searching for information, making reservations, ordering products.

• Include spread-sheets, video clips, sound clips, and other applications directly in their documents.

  
Login to rate this answer.

HTML is Presentation Language, it is not case sensitive, every tag need not have an ending tag, we cannot write our own Tags.

In XML, Every tag must have an ending tag, We can write our own tags, It is case sensitive.

  
Login to rate this answer.

1) XML is not a replacement for HTML.

2) XML and HTML were designed with different goals.

3) XML was designed to describe data and to focus on what data is.

4) HTML was designed to display data and to focus on how data looks.

5) HTML is about displaying information, XML is about describing information

Yes  1 User has rated as useful.
  
Login to rate this answer.
coolshital

Answered On : Jun 8th, 2010

View all answers by coolshital

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.

  
Login to rate this answer.
sumathi m

Answered On : Oct 6th, 2011

XML, Does not allow the interference of tags.

HTML reports for both single-file and folder analysis.

Both Print and print preview are of difference analysis.

Comments are fine in HTML but it confuse in XML

XML is a case sensitive and it must have quotes around attributes.

HTML interpreters are very forgiving about missing end tags bt XML parse are not.

  
Login to rate this answer.
syed afaq ameen mansoor

Answered On : Oct 24th, 2011

HTML is an abbreviation for Hyper Text 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.

  
Login to rate this answer.
PRANJAL KAUSHAL

Answered On : Nov 11th, 2011

How does the XML files saving is different from HTML file saving?

  
Login to rate this answer.
swetha

Answered On : Mar 15th, 2012

Xml is extensible mark up language
Html is hypertext mark up language

  
Login to rate this answer.
amit

Answered On : Apr 14th, 2012

*In HTML sequence of tags does not matter.

Code
  1. <b><i>....<b><i>

*But in XML sequence of tags matters.

Code
  1. <b><i>....<b><i>

will produce an error.

  
Login to rate this answer.
Narala Navin

Answered On : Jul 1st, 2012

HTML tags describe how to render things on the screen, while XML tags describe what things are. Put another way, HTML tags are designed for the interaction between humans and computers; XML tags are designed for the interaction between two computers. To see this difference, look at the HTML and XML versions of a short document --------------------------------------------------------

Mrs. Mary McGoon
1401 Main Street
Anytown, NC 34829

---------------------------------------------------------
Mrs. Mary McGoon 1401 Main Street Anytown NC 34829
HTML tags describe how to render things on the screen, while XML tags describe what things are. Put another way, HTML tags are designed for the interaction between humans and computers; XML tags are designed for the interaction between two computers. To see this difference, look at the HTML and XML versions of a short document --------------------------------------------------------

Mrs. Mary McGoon
1401 Main Street
Anytown, NC 34829

---------------------------------------------------------

Code
  1. <?xml version="1.0"?>
  2. <address>
  3.   <name>
  4.     <title>Mrs. </title>
  5.     <first-name>Mary</first-name>
  6.     <last-name>McGoon</last-name>
  7.   </name>
  8.   <street>1401 Main Street</street>
  9.   <city>Anytown</city>
  10.   <state>NC</state>
  11.   <zipcode>34829</zipcode>
  12. </address>

  
Login to rate this answer.
Harpreet_K

Answered On : Jul 9th, 2012

Html is used to display data whereas XML is used to store data

  
Login to rate this answer.
jyotiprasad katare

Answered On : Jul 31st, 2012

which platefrom make the xml project

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.