patzimm72
10-15-2009, 11:08 PM
Can someone please help me. I need to know the three main differences between XML and HTML.
|
Click to See Complete Forum and Search --> : XML vs. HTML patzimm72 10-15-2009, 11:08 PM Can someone please help me. I need to know the three main differences between XML and HTML. Charles 10-16-2009, 04:51 AM XML is the parent of XHTML in the same way that SGML is the parent of HTML. XML is HTML's uncle. slaughters 10-16-2009, 10:40 AM XML is mainly for exchanging data between machines. HTML is mainly for formatting text to display in a web browser OH - you asked for 3 "main differences" - you must want a homework or test answer instead of a real one. XML starts with an "X". Charles 10-16-2009, 11:21 AM "XML is mainly for exchanging data between machines." Nope, it's a way of structuring data and documents that is both human and machine readable. It is also a way to describe rules that define a type of document or application that is a subset of XML. XML is all grammar but has a way to define the vocabulary. "HTML is mainly for formatting text to display in a web browser" Nope, it's a way of structuring a certain type of document so the the meaning of the content is clear. On the printed page a lot of information is conveyed on top of the words themselves. Things like position on the page, color and size tell you that something is a heading and not a footnote. HTML captures the words but also the other stuff so that the page makes sense on any medium. (CSS is for formatting text to display in a web browser, or to be read aloud by a screen reader or to be printed on paper.) HTML is one of those applications, having grammar and vocabulary. Except HTML is a subset of SGML and not XML. slaughters 10-16-2009, 11:57 AM Charles - You missed the word "mainly" on a very simplified explanation :) P.S. I was even wrong about XML starting with an "X" when describing the eXtensible Markup Language. Charles 10-16-2009, 12:45 PM Charles - You missed the word "mainly" on a very simplified explanation :)No, I saw that but I find that attitude the root of many a poorly marked up page. slaughters 10-16-2009, 01:04 PM No, I saw that but I find that attitude the root of many a poorly marked up page. hu·mor (hymr) n. The quality that makes something laughable or amusing; funniness: could not see the humor of the situation. That which is intended to induce laughter or amusement: a writer skilled at crafting humor. The ability to perceive, enjoy, or express what is amusing, comical, incongruous, or absurd. See Synonyms at wit1. rnd me 10-21-2009, 05:44 PM - some html tags can stay open, whereas in xml they must all close - html has many known entities like " ", whereas xml has only a few - xml has no content requirements, while html demands things like <head> being before <body> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |