473,320 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

XML vs HTML

Could anybody tell me what is the main differences betwwen XML and HTML? Thank you.
Jul 20 '05 #1
3 5259
> Could anybody tell me what is the main differences betwwen XML and HTML?
Thank you.

XHTML is HTML adjusted to fit into the XML notation

XHTML is a XML Vocabulary
analogy: XML is print, XHTML is a dictionary, a website is a book

this works probably better though:
http://www.xml.com/pub/a/98/10/guide0.html
Jul 20 '05 #2
On 5 Sep 2003 03:58:18 -0700, an******@yahoo.com (Andy) wrote:
Could anybody tell me what is the main differences betwwen XML
and HTML?


XML is a pared-down version of SGML. HTML is an "application" of SGML.
XHTML is an application of XML.

Ian
--
http://www.aspipes.org/
http://www.bookstacks.org/
Jul 20 '05 #3
an******@yahoo.com (Andy) wrote:
Could anybody tell me what is the main differences betwwen XML and HTML? Thank you.


HTML came first. Technically, it's a 'language' or 'vocabulary' of
SGML. Technically. SGML was developed from GML. Etc. XML is more of a
simpler, more restrictive, subset of SGML, making it easier for
manufacturers to implement.

In short, though, the next version or standard of HTML, is called,
XHTML. It is the tag and attributes of HTML, but conforming to a few
XML 'style' preferences. Once, however, you have HTML as a version, or
'vocabulary' of XML, then all the general features of XML become
available (such as the 'magic' that is - namespaces). And the same
parsers written by manufacturers for XML, can be used on XHTML web
pages - XHTML, like XSLT, are then written in . . XML.

One of the first things one notices is that relaxed defaults are not
allowed in XML, and so therefore in XHTML. All attributes must be
enclosed in double quotes. All tags must have a closing tag, even
those which didn't before (like br, img, or hr), or which didn't
require one, necessarily, in HTML 4 (such as p, paragraph, I believe).
A shorthand is allowed for a closing tag by placing a backslash just
before the closing 'greater than' bracket of a tag - for ex., not
<br>, but <br />. Empty attributes, such as the "noshade" attribute of
a horizontal line - hr - might be written as - noshade="noshade". And
so on.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
1
by: cirillo_curiosone | last post by:
Hi, i'm new to javascript. I started studing it on the web few weeks ago, but still haven't been able to solve one big problem: HOT TO PASS VALUES FROM A SCRIPT VARIABLE TO A CHILD HTML...
33
by: LRW | last post by:
http://gto.ie-studios.net/index.php When you view the above site in IE, if the 1st of the three product images is tall enough to push the cell down a couple of pixels, IE somehow doesn't show...
0
by: Boris Ammerlaan | last post by:
This notice is posted about every week. I'll endeavor to use the same subject line so that those of you who have seen it can kill-file the subject; additionally, Supersedes: headers are used to...
9
by: Patient Guy | last post by:
Taking the BODY element as an example, all of its style attributes ('alink', 'vlink', 'background', 'text', etc.) are deprecated in HTML 4.01, a fact noted in the DOM Level 2 HTML specification. ...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
6
by: Guy Macon | last post by:
cwdjrxyz wrote: HTML 5 has solved the above probem. See the following web page: HTML 5, one vocabulary, two serializations http://www.w3.org/QA/2008/01/html5-is-html-and-xml.html
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.