Difference between XML and HTML

Write five difference between XML and HTML

Questions by navin1972   answers by navin1972

Showing Answers 1 - 46 of 46 Answers

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.

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.

  Was this answer useful?  Yes

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.

  Was this answer useful?  Yes

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

coolshital

  • Jun 8th, 2010
 

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.

  Was this answer useful?  Yes

sumathi m

  • 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.

  Was this answer useful?  Yes

syed afaq ameen mansoor

  • 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.

  Was this answer useful?  Yes

PRANJAL KAUSHAL

  • Nov 11th, 2011
 

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

  Was this answer useful?  Yes

swetha

  • Mar 15th, 2012
 

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

  Was this answer useful?  Yes

amit

  • 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.


  Was this answer useful?  Yes

Narala Navin

  • 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>

  Was this answer useful?  Yes

Harpreet_K

  • Jul 9th, 2012
 

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

  Was this answer useful?  Yes

jyotiprasad katare

  • Jul 31st, 2012
 

which platefrom make the xml project

  Was this answer useful?  Yes

Sushma_S

  • May 29th, 2015
 

HTML has pre-defined tags where as XML doesnt have, an author can create his/her own tags.

  Was this answer useful?  Yes

sahil jain

  • Feb 3rd, 2016
 

HTML stands for Hyper Text Markup Language

  Was this answer useful?  Yes

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions