question archive What is the difference between an HTML document and XML document? What is the difference in the code? Explain the difference between a CSV file and a text file

What is the difference between an HTML document and XML document? What is the difference in the code? Explain the difference between a CSV file and a text file

Subject:Computer SciencePrice:2.87 Bought7

What is the difference between an HTML document and XML document? What is the difference in the code?

Explain the difference between a CSV file and a text file.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

Answer:-

HTML document and XML document

HTML XML
HTML stand for HyperText Markup Language. XML stands for eXtensible Markup Language
HTML has its own predefined tags. user define tags according to need.
HTML does not preserve Whitespaces. It preserves whitespaces.
HTML usage for only frontend.

XML can store data separately from HTML.

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

Example:-

Code difference

HTML

<html>

<head>

</head>

<body>

<h1> hello</h1>

</body>

</html>

XML

<library>
  <date>2017-11-11</date>
  <book>11:10</book>
  <to>admin</to>
  <issue>today</issue>
  <notice>return in 3 days</notice>
</library>

Difference between a CSV file and a text file.

Text file is a simple file that saves the data with extension .txt ,In text file there is no limitation of what so ever text format.

CSV file is commonly used by MS Excel.Its extension is .csv. this is also a plain text file but with a limitation of comma separated values.